Comment #8 on issue 573 by dbjdbj: non standard strings allowed by JSON.parse()
http://code.google.com/p/v8/issues/detail?id=573

Here is one more, that MUST not be parsed :

JSON.parse('{ "a" : 1 + 2 }')

Safari, FF, IE8, do not allow this ... It seems to me as if someone "here", has implemented JSON.parse() in javascript as :

JSON.parse = function ( data ) {
  return (new Function("return " + data))() ;
}

As far as I can see , "anything goes" currently ?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to