Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/in/S8.12.6_A1.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: |
6 When the [[HasProperty]] method of O is called with property name P and
7 if O has a property with name P, return true
8 es5id: 8.12.6_A1
9 description: Try find existent property of any Object
10 ---*/
11
12 var __obj={fooProp:"fooooooo"};
13
14 //////////////////////////////////////////////////////////////////////////////
15 //CHECK#1
16 if (!("fooProp" in __obj)) {
17 $ERROR('#1: var __obj={fooProp:"fooooooo"}; "fooProp" in __obj');
18 }
19 //
20 //////////////////////////////////////////////////////////////////////////////