mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Works on coffee now
This commit is contained in:
parent
2280734851
commit
3b15a50eeb
1 changed files with 0 additions and 3 deletions
|
@ -346,9 +346,6 @@ class TestExecJS < Test
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_coffeescript
|
def test_coffeescript
|
||||||
# Skip coffeescript on Duktape for now
|
|
||||||
skip if ExecJS.runtime.is_a?(ExecJS::DuktapeRuntime)
|
|
||||||
|
|
||||||
assert source = File.read(File.expand_path("../fixtures/coffee-script.js", __FILE__))
|
assert source = File.read(File.expand_path("../fixtures/coffee-script.js", __FILE__))
|
||||||
context = ExecJS.compile(source)
|
context = ExecJS.compile(source)
|
||||||
assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")
|
assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")
|
||||||
|
|
Loading…
Reference in a new issue