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:
parent
9830ef0b6c
commit
736e58623d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue