blob: d37c2bfa72dde54bda8fddd1e5b050ad528ca4b8 [file] [log] [blame]
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
var expect = "No error";
var actual = expect;
if (typeof options == "function") {
var opts = options();
if (!/\bstrict\b/.test(opts))
options("strict");
if (!/\bwerror\b/.test(opts))
options("werror");
}
try {
eval('function foo() { "use strict"; }');
} catch (e) {
actual = '' + e;
}
reportCompare(expect, actual, "ok");