Status: New
Owner: ----
Labels: Type-Defect Priority-Critical YUI

New issue 1156 by lucas.e.smith: JSON.parse infinite loop in browsers with native JSON
http://code.google.com/p/google-caja/issues/detail?id=1156

JSON.parse('{"boom":1}');

Difficult to debug this.  It is calling the reviver function passed in
cajita.js:4110

return nativeJSON.parse(text, function (key, value) {
      return canSetPub(this, key) ? value : void 0;
});

but IE8 dev tools break at the reviver only once for the proto___ property
before throwing an "Out of stack space" error.  Safari crashes.  Firefox
3.5 doesn't crash, and returns an object, but I haven't looked into the
properties or depth of the returned object (no console.log ftl)

--
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

Reply via email to