1
0
Fork 0
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:
Joshua Peek 2015-03-09 16:37:07 -07:00
parent 2280734851
commit 3b15a50eeb

View file

@ -346,9 +346,6 @@ class TestExecJS < Test
end
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__))
context = ExecJS.compile(source)
assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")