early-errors-arrow-eval-in-formal-parameters-strict.js (422B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright 2016 Microsoft, Inc. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 author: Brian Terlson <brian.terlson@microsoft.com> 8 esid: pending 9 description: It is a SyntaxError if FormalParameters contains eval 10 negative: 11 phase: parse 12 type: SyntaxError 13 flags: [onlyStrict] 14 ---*/ 15 16 $DONOTEVALUATE(); 17 18 async(eval) => { }