OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 | |
6 function Test() { | |
7 var globalObject = global; | |
8 assertEquals(globalObject, global); | |
9 assertEquals(globalObject, global.global); | |
10 | |
11 var thisObject = this; | |
12 assertEquals(globalObject, thisObject); | |
targos
2016/12/23 17:31:21
This test fails and I don't understand why.
ljharb
2016/12/23 18:04:23
Are the tests run in strict or sloppy mode?
You m
| |
13 assertEquals(globalObject, thisObject.global); | |
14 | |
15 const desc = Object.getOwnPropertyDescriptor(globalObject, 'global'); | |
16 assertPropertiesEqual({ | |
17 value: globalObject, | |
18 writable: true, | |
19 enumerable: false, | |
20 configurable: true | |
21 }, desc); | |
22 } | |
23 Test(); | |
OLD | NEW |