blob: 60906463c77a4c1c43c8e7f1e2399731a912fd4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// |reftest| skip-if(!this.uneval)
/*
* 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);
|