2011-10-03 13:04:52 -07:00

20 lines
538 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The Array.prototype property has the attribute ReadOnly
*
* @path ch15/15.4/15.4.3/15.4.3.1/S15.4.3.1_A4.js
* @description Checking if varying the Array.prototype property fails
* @noStrict
*/
//CHECK#1
var x = Array.prototype;
Array.prototype = 1;
if (Array.prototype !== x) {
$ERROR('#1: x = Array.prototype; Array.prototype = 1; Array.prototype === x. Actual: ' + (Array.prototype));
}