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

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