mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
21 lines
672 B
JavaScript
21 lines
672 B
JavaScript
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
esid: sec-initializeboundname
|
|
description: >
|
|
In strict mode code, re-resolve unresolvable references on the global in PutValue.
|
|
info: |
|
|
via sec-putvalue
|
|
|
|
If IsUnresolvableReference(V) is true, then
|
|
If IsStrictReference(V) is true, then
|
|
Let realm be the current Realm Record.
|
|
Set V to ? ResolveBinding(realm.[[GlobalEnv]], name).
|
|
Assert: IsStrictReference(V) is true.
|
|
If IsUnresolvableReference(V) is true, throw a ReferenceError exception.
|
|
|
|
flags: [onlyStrict]
|
|
---*/
|
|
|
|
undeclared = (this.undeclared = 5);
|