summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/object/freeze-global-eval-const.js
blob: a43f5c51c9b63b5e0cf3a841a2e517a765fac5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!xulRuntime.shell) -- uses evalcx
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

try {
    evalcx("Object.freeze(this); eval('const q = undefined;')");
} catch (e) {
    assertEq(e.message, "({lazy:false}) is not extensible");
}

reportCompare(0, 0, "don't crash");