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

yay for arrow functions

This commit is contained in:
Sam 2016-05-10 17:35:30 +10:00
parent 9830ef0b6c
commit 736e58623d

View file

@ -68,4 +68,9 @@ class MiniRacerTest < Minitest::Test
assert_equal 3, context.eval('adder(1,2)')
end
def test_es6_arrow_functions
context = MiniRacer::Context.new
assert_equal 42, context.eval('a=()=>42; a();')
end
end