blob: 5f32d4702aeb86b4810ef962da8505931e8b1241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |reftest| skip-if(!xulRuntime.shell) -- preventExtensions on global
/*
* 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");
|