1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

don't autoscope if it's a free-form spec.

This commit is contained in:
Charles Lowell 2012-06-06 03:55:10 -05:00
parent cf580ed9cd
commit 155cd68d20

View file

@ -28,6 +28,7 @@ module Autoscope
end
def low_level_c_spec?
return false unless described_class
name = described_class.name.split('::').last
return V8::C.const_defined?(name) && V8::C.const_get(name) == described_class
end