Skip to content

Commit

Permalink
add test that needs to be addressed once symbols are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
n14little committed May 20, 2020
1 parent 9b351bc commit 772cd40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boa/src/builtins/json/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,14 @@ fn json_stringify_array_converts_function_to_null() {

assert_eq!(actual, expected);
}

#[test]
#[ignore]
fn json_stringify_array_converts_symbol_to_null() {
let realm = Realm::create();
let mut engine = Executor::new(realm);
let actual = forward(&mut engine, r#"JSON.stringify([Symbol()])"#);
let expected = forward(&mut engine, r#"'[null]'"#);

assert_eq!(actual, expected);
}

0 comments on commit 772cd40

Please sign in to comment.