-
Bug
-
Resolution: Fixed
-
P3
-
8
-
None
-
b112
FoldConstants#leaveIfNode() and FoldConstants#leaveTernaryNode() need to guard against ArrayLiteralNode:
jjs> (function(){if([a]);})()
Expected: throws ReferenceError
Actual: no error
jjs> [a] ? 1 : 2
Expected: throws ReferenceError
Actual: no error
jjs> (function(){if([a]);})()
Expected: throws ReferenceError
Actual: no error
jjs> [a] ? 1 : 2
Expected: throws ReferenceError
Actual: no error