blob: 1dbff2a723dc6ba95bef96e445de0290921a0932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S8.1_A4;
* @section: 8.1;
* @assertion: If property of object not exist, return undefined;
* @description: Check value of not existed property;
*/
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {
id: "S8.1_A4",
path: "TestCases/08_Types/8.1_The_Undefined_Type/S8.1_A4.js",
assertion: "If property of object not exist, return undefined",
description: "Check value of not existed property",
test: function testcase() {
// CHECK#1
if ((new Object()).newProperty !== undefined) {
$ERROR('#1: (new Object()).newProperty === undefined. Actual: ' + ((new Object()).newProperty));
}
}
});
|