get-accsr-inside-func-expr-runtime.js (767B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: use-strict-directive 6 es5id: 10.1.1-17-s 7 description: > 8 Strict Mode - Function code that is part of a Accessor 9 PropertyAssignment is in Strict Mode if Accessor 10 PropertyAssignment is contained in use strict(getter) 11 flags: [noStrict] 12 ---*/ 13 14 assert.throws(ReferenceError, function() { 15 "use strict"; 16 var obj = {}; 17 Object.defineProperty(obj, "accProperty", { 18 get: function () { 19 test262unresolvable = null; 20 return 11; 21 } 22 }); 23 24 var temp = obj.accProperty === 11; 25 }); 26 27 reportCompare(0, 0);