michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: if (typeof disassemble != 'undefined') michael@0: { michael@0: var func = disassemble(function() { return "c\\d"; }) michael@0: michael@0: // The disassembled function will contain a bytecode "string" with the content of the string next to it. michael@0: // Check if that string isn't over-escaped i.e. \\ isn't escaped to \\\\ . michael@0: assertEq(func.indexOf("\\\\\\\\"), -1) michael@0: } michael@0: michael@0: reportCompare(0, 0, 'ok');