Skip to content

Commit

Permalink
use new get_field
Browse files Browse the repository at this point in the history
  • Loading branch information
n14little committed May 26, 2020
1 parent 44ed70f commit 235d629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boa/src/builtins/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub fn stringify(_: &mut Value, args: &[Value], interpreter: &mut Interpreter) -
if key == "length" {
None
} else {
Some(replacer.get_field_slice(&key.to_string()))
Some(replacer.get_field(key.to_string()))
}
});
for field in fields {
Expand Down
2 changes: 1 addition & 1 deletion boa/src/builtins/json/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fn json_stringify_array_converts_function_to_null() {
#[ignore]
fn json_stringify_array_converts_symbol_to_null() {
let realm = Realm::create();
let mut engine = Executor::new(realm);
let mut engine = Interpreter::new(realm);
let actual = forward(&mut engine, r#"JSON.stringify([Symbol()])"#);
let expected = forward(&mut engine, r#"'[null]'"#);

Expand Down

0 comments on commit 235d629

Please sign in to comment.