10.6-14-c-4-s-strict.js (472B)
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: 10.6-14-c-4-s 7 description: > 8 Strict Mode - TypeError is thrown when accessing the [[Set]] 9 attribute in 'callee' under strict mode 10 flags: [onlyStrict] 11 ---*/ 12 13 var argObj = function () { 14 return arguments; 15 } (); 16 17 assert.throws(TypeError, function() { 18 argObj.callee = {}; 19 }); 20 21 reportCompare(0, 0);