Comment #8 on issue 1086 by mikesamuel: Can provided JSON object report Object.proto.toString.call(JSON) == '[object JSON]'?
http://code.google.com/p/google-caja/issues/detail?id=1086

Does the test /\[native code\]/.test(window.JSON.parse.toString()) work for you?

Slightly more efficient might be
  Object.propertyIsEnumerable(window.JSON, 'parse');
since for ES3, native implementations do make parse noenum, and non-native
implementations can't, and in ES5, JSON is mandated.

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