Browse Source

Support overriding the `arguments` variable (#1049)

This eliminates a number of panics in the Test262 suite.
pull/1051/head
Annika 4 years ago committed by GitHub
parent
commit
c083c85da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      boa/src/object/gcobject.rs

4
boa/src/object/gcobject.rs

@ -162,7 +162,7 @@ impl GcObject {
let arguments_obj = create_unmapped_arguments_object(args);
local_env
.borrow_mut()
.create_mutable_binding("arguments".to_string(), false, false)
.create_mutable_binding("arguments".to_string(), false, true)
.map_err(|e| e.to_error(context))?;
local_env
.borrow_mut()
@ -259,7 +259,7 @@ impl GcObject {
let arguments_obj = create_unmapped_arguments_object(args);
local_env
.borrow_mut()
.create_mutable_binding("arguments".to_string(), false, false)
.create_mutable_binding("arguments".to_string(), false, true)
.map_err(|e| e.to_error(context))?;
local_env
.borrow_mut()

Loading…
Cancel
Save