test262/test/suite/ch15/15.8/15.8.1/15.8.1.4/S15.8.1.4_A4.js

19 lines
588 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Value Property LOG2E of the Math Object has the attribute ReadOnly
*
* @path 15_Native/15.8_The_Math_Object/15.8.1_Value_Properties_of_the_Math_Object/15.8.1.4_LOG2E/S15.8.1.4_A4.js
* @description Checking if Math.LOG2E property has the attribute ReadOnly
* @noStrict
*/
// CHECK#1
var x = Math.LOG2E;
Math.LOG2E = 1;
if (Math.LOG2E !== x) {
$ERROR('#1: Math.LOG2E hasn\'t ReadOnly: \'x = Math.LOG2E;Math.LOG2E = 1;Math.LOG2E === x\'');
}