11.13.1-4-28gs-strict.js (432B)
1 'use strict'; 2 // Copyright (c) 2012 Ecma International. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 es5id: 11.13.1-4-28gs 7 description: > 8 Strict Mode - TypeError is thrown if the identifier 'Math.PI' 9 appears as the LeftHandSideExpression of simple assignment(=) 10 flags: [onlyStrict] 11 ---*/ 12 13 assert.throws(TypeError, function() { 14 Math.PI = 20; 15 }); 16 17 reportCompare(0, 0);