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