summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-633741.js
blob: 6ec1c9261c38fff3f4234cd3f21bf725266dbfd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |reftest| skip
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributors: Jan de Mooij
 */

Object.preventExtensions(this);
delete Function;

try {
    /* Don't assert. */
    Object.getOwnPropertyNames(this);
} catch(e) {
    reportCompare(true, false, "this shouldn't have thrown");
}
reportCompare(0, 0, "ok");