1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
testcase(); function testcase() { var tokenCodes = { get try() { try { super.actual(); } catch (e) {} } }; var arr = [ 'try', ]; for (var i = 0; i < arr.length; i++) { if (tokenCodes[arr[i]] !== i) {}; } } if (typeof reportCompare === 'function') reportCompare(0,0,"OK");