michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var BUGNUMBER = 523401; michael@0: var summary = 'identifier starts immediately after numeric literal'; michael@0: var expect = "SyntaxError: identifier starts immediately after numeric literal"; michael@0: var actual; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus(summary); michael@0: michael@0: try { michael@0: eval("actual = 0in [1]"); michael@0: } catch (e) { michael@0: actual = e; michael@0: } michael@0: actual = '' + actual; michael@0: michael@0: reportCompare(expect, actual, summary); michael@0: michael@0: printStatus("All tests passed!");