Debian Codegraph @

js/src/tests/non262/extensions/uneval/regress-624199.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 function roundTrip(f) {
8 try {
9 eval(uneval(f));
10 return true;
11 } catch (e) {
12 return '' + e;
13 }
14 }
15
16 function f() { if (true) { 'use strict'; } var eval; }
17 assertEq(roundTrip(f), true);
18
19 reportCompare(true,true);