1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
4 //-----------------------------------------------------------------------------
5 var BUGNUMBER = 582643;
6 var summary = "'0x' not followed by hex digits should be a syntax error";
8 print(BUGNUMBER + ": " + summary);
17 throw new Error("didn't throw parsing 0x (with no subsequent hex digits)");
21 assertEq(e instanceof SyntaxError, true,
22 "bad exception thrown: " + e);
25 /******************************************************************************/
27 if (typeof reportCompare === "function")
28 reportCompare(true, true);
30 print("All tests passed!");