Add a note to eval() in json.org library

This commit is contained in:
Dan Stillman 2009-11-13 06:22:44 +00:00
parent 3fd5fe06a3
commit d245064f87

View file

@ -2603,7 +2603,8 @@ Zotero.JSON = new function() {
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
// Friendly AMO reviewer: This is the official json.org library and is safe.
j = eval('(' + arg + ')');
// In the optional third stage, we recursively walk the new structure, passing