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

native eval now takes a source parameter.

This commit is contained in:
Charles Lowell 2010-02-11 16:42:40 -06:00
parent 9c81b461fa
commit a44675f70a

View file

@ -5,7 +5,7 @@ include V8
describe C::Object do
it "has a reference to its calling context" do
C::Context.new.open do |cxt|
o = cxt.eval('new Object()');
o = cxt.eval('new Object()', '<eval>');
o.context.should == cxt
o.context.should be_eql(cxt)
end