Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / instn-local-bndng-for-dup.js
blobfc07a1714292936f032532adf82b4ad61f0c8a5e
1 // |reftest| module
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: >
6     Only one attempt is made to create a binding for any number of variable
7     declarations within `for` statements
8 esid: sec-moduledeclarationinstantiation
9 info: |
10     [...]
11     13. Let varDeclarations be the VarScopedDeclarations of code.
12     14. Let declaredVarNames be a new empty List.
13     15. For each element d in varDeclarations do
14         a. For each element dn of the BoundNames of d do
15            i. If dn is not an element of declaredVarNames, then
16               1. Perform ! envRec.CreateMutableBinding(dn, false).
17               [...]
18               3. Append dn to declaredVarNames.
19     [...]
20 flags: [module]
21 ---*/
23 for (var test262; false; ) {}
24 for (var test262; false; ) {}
26 reportCompare(0, 0);