Add a note to eval() in json.org library
This commit is contained in:
parent
3fd5fe06a3
commit
d245064f87
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue