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:
Roland Takacs
2015-07-15 11:18:37 +02:00
committed by Evgeny Gavrin
parent 8aeb2a055e
commit dcc704d1e8
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -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');