mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
meh. provide eval_js... not so crazy about it.
This commit is contained in:
parent
a9079e02ad
commit
5de969fd97
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ class V8::Conversion
|
||||||
def to_ruby
|
def to_ruby
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def eval_js(source, filename = '<eval>')
|
||||||
|
V8::Context.new(:with => self).eval(source, filename)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module NativeObject
|
module NativeObject
|
||||||
|
|
Loading…
Add table
Reference in a new issue