Fix assertion 'mem_pools == NULL' fail in JSON.stringify

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
Roland Takacs
2015-08-17 00:32:45 -07:00
committed by Kristof Kosztyo
parent ab47365b71
commit cc4283b945
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -133,6 +133,8 @@ assert (JSON.stringify (object, replacer_function) == '{"c":3,"b":"JSON","a":"FO
filter = ["a", "b"];
assert (JSON.stringify (object, filter) == '{"a":"JSON","b":"JSON"}');
assert (JSON.stringify ([], [ 'foo', 'foo' ]) === '[]');
number = new Number(2.2);
number.toString = {};
number.valueOf = [];