Debian Codegraph @

js/src/tests/test262/language/directive-prologue/get-accsr-not-first-runtime.js

raw
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-27-s
7 description: >
8 Strict Mode - Function code of Accessor PropertyAssignment
9 contains Use Strict Directive which appears in the middle of the
10 block(getter)
11 flags: [noStrict]
12 ---*/
13
14 var obj = {};
15 Object.defineProperty(obj, "accProperty", {
16 get: function () {
17 test262unresolvable = null;
18 "use strict";
19 return 11;
20 }
21 });
22
23 assert.sameValue(obj.accProperty, 11, 'obj.accProperty');
24 assert.sameValue(test262unresolvable, null);
25
26 reportCompare(0, 0);