| 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: If GetBase(x) doesn't have a property GetPropertyName(x), return true |
| 6 |
es5id: 11.4.1_A2.2_T2 |
| 7 |
description: Checking Object object and Function object cases |
| 8 |
---*/ |
| 9 |
|
| 10 |
//CHECK#1 |
| 11 |
function MyFunction(){} |
| 12 |
var MyObject = new MyFunction(); |
| 13 |
if (delete MyObject.prop !== true) { |
| 14 |
$ERROR('#1: function MyFunction(){}; var MyObject = new MyFunction(); delete MyObject.prop === true'); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#2 |
| 18 |
var MyObject = new Object(); |
| 19 |
if (delete MyObject.prop !== true) { |
| 20 |
$ERROR('#2: var MyObject = new Object(); delete MyObject.prop === true'); |
| 21 |
} |