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

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

Issue 2599903003: Implement "global" property of global object
Patch Set: Implement "global" property of global object 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/bootstrapper.cc ('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
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();
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698