Debian Codegraph @

js/src/tests/test262/language/identifier-resolution/assign-to-global-undefined-strict.js

raw
1 // |reftest| error:ReferenceError
2 'use strict';
3 // Copyright (C) 2020 Rick Waldron. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-initializeboundname
7 description: >
8 In strict mode code, attempts to assign to an unresolvable reference must throw a ReferenceError exception
9 info: |
10 via sec-putvalue
11
12 If IsUnresolvableReference(V) is true, then
13 If IsStrictReference(V) is true, then
14 Throw a ReferenceError exception.
15
16 flags: [onlyStrict]
17 negative:
18 phase: runtime
19 type: ReferenceError
20 ---*/
21
22 undeclared = (this.undeclared = 5);