Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_5 / regress / regress-633741.js
1 /*
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/licenses/publicdomain/
4  * Contributors: Jan de Mooij
5  */
6
7 Object.preventExtensions(this);
8 delete Function;
9
10 try {
11     /* Don't assert. */
12     Object.getOwnPropertyNames(this);
13 } catch(e) {
14     reportCompare(true, false, "this shouldn't have thrown");
15 }
16 reportCompare(0, 0, "ok");
17