summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/undefined/S8.1_A4.js
blob: 53d3f74886781e7bf82870525fd8147c4383c87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: If property of object not exist, return undefined
es5id: 8.1_A4
description: Check value of not existed property
---*/

// CHECK#1
if ((new Object()).newProperty !== undefined) {
  throw new Test262Error('#1: (new Object()).newProperty === undefined. Actual: ' + ((new Object()).newProperty));
}

reportCompare(0, 0);