mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
LibJS: Mark concrete method calls of Environment Records with ?/!
This is an editorial change in the ECMA-262 spec.
See: 7ae3ecf
This commit is contained in:
parent
cdc5ed2fb5
commit
89d4094709
3 changed files with 8 additions and 10 deletions
|
@ -131,8 +131,7 @@ ThrowCompletionOr<void> DeclarativeEnvironment::set_mutable_binding(GlobalObject
|
|||
if (strict)
|
||||
return vm().throw_completion<ReferenceError>(global_object, ErrorType::UnknownIdentifier, name);
|
||||
|
||||
// FIXME: Should be `! envRec.CreateMutableBinding(N, true)` (see https://github.com/tc39/ecma262/pull/2764)
|
||||
// b. Perform envRec.CreateMutableBinding(N, true).
|
||||
// b. Perform ! envRec.CreateMutableBinding(N, true).
|
||||
MUST(create_mutable_binding(global_object, name, true));
|
||||
|
||||
// c. Perform ! envRec.InitializeBinding(N, V).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue