Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: test/mjsunit/harmony/global.js

Issue 2599903003: Implement "global" property of global object
Patch Set: implement behind a harmony flag Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // Flags: --harmony-global
6
7 function Test() {
8 var globalObject = global;
9 assertEquals(globalObject, global);
10 assertEquals(globalObject, global.global);
11
12 var thisObject = this;
13 assertEquals(globalObject, thisObject);
14 assertEquals(globalObject, thisObject.global);
15
16 const desc = Object.getOwnPropertyDescriptor(globalObject, 'global');
17 assertPropertiesEqual({
18 value: globalObject,
19 writable: true,
20 enumerable: false,
21 configurable: true
22 }, desc);
23 }
24 Test();
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698