mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
24 lines
575 B
JavaScript
24 lines
575 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* @path ch15/15.2/15.2.3/15.2.3.1/S15.2.3.1_A3.js
|
|
*/
|
|
|
|
|
|
/**
|
|
* @name: S15.2.3.1_A3;
|
|
* @section: 15.2.3.1, 15.2.4;
|
|
* @assertion: The Object.prototype property has the attribute DontDelete;
|
|
* @description: Checking if deleting "Object.prototype" property fails;
|
|
* @noStrict
|
|
*/
|
|
|
|
delete Object.prototype;
|
|
|
|
//CHECK#2
|
|
if (!(Object.hasOwnProperty('prototype'))) {
|
|
$ERROR('#2: the Object.prototype property has the attributes DontDelete.');
|
|
}
|
|
|