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

Issue 345533004: Use "self" instead of globalThis. (Closed)

Created:
6 years, 6 months ago by ahe
Modified:
6 years, 6 months ago
Reviewers:
Johnni Winther
CC:
reviews_dartlang.org, floitsch
Visibility:
Public.

Description

Use "self" instead of globalThis. Main benefits: * Simpler code. * Smaller generated code (no use of lazy statics). * One step closer to "use strict" as Primitives.computeGlobalThis() wouldn't work in strict mode. R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=37483

Patch Set 1 #

Patch Set 2 : Merged with r37482. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -42 lines) Patch
M dart/sdk/lib/_internal/lib/async_patch.dart View 3 chunks +3 lines, -5 lines 0 comments Download
M dart/sdk/lib/_internal/lib/isolate_helper.dart View 8 chunks +13 lines, -19 lines 0 comments Download
M dart/sdk/lib/_internal/lib/js_helper.dart View 1 2 chunks +1 line, -3 lines 0 comments Download
M dart/sdk/lib/_internal/lib/preambles/d8.js View 2 chunks +13 lines, -14 lines 0 comments Download
M dart/sdk/lib/_internal/lib/preambles/jsshell.js View 1 chunk +9 lines, -0 lines 0 comments Download
M dart/sdk/lib/js/dart2js/js_dart2js.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
ahe
After explaining the purpose of "self" once again, I decided to write a wiki page ...
6 years, 6 months ago (2014-06-18 12:28:04 UTC) #1
Johnni Winther
LGTM
6 years, 6 months ago (2014-06-18 12:44:27 UTC) #2
ahe
Thank you, Johnni! FYI: Added another benefit to the description: * One step closer to ...
6 years, 6 months ago (2014-06-18 13:18:47 UTC) #3
ahe
6 years, 6 months ago (2014-06-19 09:46:43 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r37483 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698