Debian Codegraph @

js/src/tests/non262/extensions/uneval/toSource-0.js

raw
1 // |reftest| skip-if(!this.uneval)
2
3 /*
4 * Any copyright is dedicated to the Public Domain.
5 * http://creativecommons.org/licenses/publicdomain/
6 */
7
8 assertEq(eval(uneval('\x001')), '\x001');
9
10 f = eval('(' + (function () { return '\x001'; }).toString() + ')');
11 assertEq(f(), '\x001');
12
13 assertEq(eval('\x001'.toSource()) == '\x001', true);
14
15 if (typeof reportCompare === 'function')
16 reportCompare(true, true);