blob: 7255def1d86a7f406ff8375279406f2f94dc2286 [file] [log] [blame]
description('Tests for ES6 arrow function lexical bind of arguments on top level');
let foo = () => arguments;
let boo = () => arguments[0];
let bar = error => error ? arguments : 'no-error';
shouldThrow('foo()');
shouldThrow('boo()');
shouldThrow('bar(true)');
shouldBe('bar(false)', '"no-error"');
var successfullyParsed = true;