arrowparameters-bindingidentifier-eval.js (429B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 14.2.1 5 description: > 6 ArrowParameters[Yield] : 7 BindingIdentifier[?Yield] 8 ... 9 10 Parameter named "eval", non-strict 11 12 flags: [noStrict] 13 ---*/ 14 var af = eval => eval; 15 16 17 assert.sameValue(typeof af, "function"); 18 assert.sameValue(af(1), 1); 19 20 reportCompare(0, 0);