summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-541455.js
blob: 7ee3a40155b2403e902821c0fb0f4765236347f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributors: Gary Kwong and Jason Orendorff
 */

function f(x) { return eval('"mumble"; x + 42'); }

var expect = true;
var actual = ('' + f).indexOf("mumble") >= 0;

reportCompare(expect, actual, "unknown directive in eval code wrongly dropped");