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: assertEq(eval(uneval('\x001')), '\x001'); michael@0: michael@0: f = eval('(' + (function () { return '\x001'; }).toString() + ')'); michael@0: assertEq(f(), '\x001'); michael@0: michael@0: assertEq(eval('\x001'.toSource()) == '\x001', true); michael@0: michael@0: if (typeof reportCompare === 'function') michael@0: reportCompare(true, true);