early-errors-declaration-duplicate-parameters-strict.js (454B)
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: > 10 If strict mode, early error rules for StrictFormalParameters are applied 11 negative: 12 phase: parse 13 type: SyntaxError 14 flags: [onlyStrict] 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 async function foo(a, a) { }