You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function(){try{eval('var d = function d([d]) { return d };if (d([true]) !== true) return false;');}catch(e){return!(einstanceofSyntaxError);}try{eval('var f = function f([id, id]) { return id }');returnfalse;}catch(e){returneinstanceofSyntaxError;}}
In the first try/catch block, it evaluates several statements with eval. One of the statements has return false; in it, which is a syntax error because the top level of code evaluated by eval isn't a function. Is this intentional?
The line seems to have changed recently in 39a4e84, which seems to have tried to wrap the code in an eval so that the SyntaxError can be caught and returned as false. However, in doing so, it made versions that formerly pass now fail:
In the first try/catch block, it evaluates several statements with
eval
. One of the statements hasreturn false;
in it, which is a syntax error because the top level of code evaluated byeval
isn't a function. Is this intentional?The line seems to have changed recently in 39a4e84, which seems to have tried to wrap the code in an
eval
so that the SyntaxError can be caught and returned as false. However, in doing so, it made versions that formerly pass now fail:39a4e84#diff-360bd21e67071c3b8fd48a96bdadbcee20a6ec434aeffb7cd1a0c528ad1644f2L432-R432
The text was updated successfully, but these errors were encountered: