summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-566549.js
blob: 3c5decd0ffd69f593909c047a16c006571c4783d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
// Contributors: Jesse Ruderman <jruderman@gmail.com>,
//               Gary Kwong <gary@rumblingedge.com>,
//               Jason Orendorff <jorendorff@mozilla.com>

try {
    evalcx('var p;', []);
} catch (exc) {}

try {
    evalcx('');
    Function("evalcx(\"var p\",[])")();
} catch (exc) {}

try {
    evalcx('var p;');
} catch (exc) {}

reportCompare(0, 0, "ok");