Add missing case for backspace control character in JSON.parse()
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Evgeny Gavrin
parent
8aeb2a055e
commit
dcc704d1e8
@@ -38,6 +38,8 @@ str = '-32.5e002';
|
||||
assert (JSON.parse (str) == -3250);
|
||||
str = '"str"';
|
||||
assert (JSON.parse (str) == "str");
|
||||
str = '"\\b\\f\\n\\t\\r"'
|
||||
assert (JSON.parse (str) === "\b\f\n\t\r");
|
||||
|
||||
check_parse_error ('undefined');
|
||||
check_parse_error ('falses');
|
||||
|
||||
Reference in New Issue
Block a user