Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium ES5
New issue 752 by [email protected]: JSON.stringify returns wrong result
with a function given as the replacer argument
http://code.google.com/p/v8/issues/detail?id=752
When JSON.stringify is called with a replacer function that returns false
on a specific value it actually returns true. This makes an es5conform test
fail.
What will reproduce the problem:
function f(k, v){ return v===42? new Boolean(false):v;}
print(JSON.stringify([42], f));
Expected result:
[false]
Actual result:
[true]
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev