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:
parent
9c81b461fa
commit
a44675f70a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue