Skip to content

Commit

Permalink
Support overriding the arguments variable (#1049)
Browse files Browse the repository at this point in the history
This eliminates a number of panics in the Test262 suite.
  • Loading branch information
AnnikaCodes committed Jan 9, 2021
1 parent 624d03d commit c083c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa/src/object/gcobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c083c85

Please sign in to comment.