Debian Codegraph @

js/src/tests/test262/built-ins/undefined/S15.1.1.3_A4.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The undefined is DontEnum
6 esid: sec-undefined
7 description: Use for-in statement
8 ---*/
9
10 // CHECK#1
11 for (var prop in this) {
12 if (prop === "undefined") {
13 throw new Test262Error('#1: The undefined is DontEnum');
14 }
15 }
16
17 reportCompare(0, 0);