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

Side by Side Diff: tool/input_sdk/private/runtime.dart

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: regen sdk and expectations Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart._runtime; 5 library dart._runtime;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; 10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread;
(...skipping 13 matching lines...) Expand all
24 final defineLazyProperties = JS('', '$defineLazy'); 24 final defineLazyProperties = JS('', '$defineLazy');
25 final defineLazyClassGeneric = JS('', '$defineLazyProperty'); 25 final defineLazyClassGeneric = JS('', '$defineLazyProperty');
26 26
27 // Renames 27 // Renames
28 @JSExportName('as') 28 @JSExportName('as')
29 final as_ = JS('', '$cast'); 29 final as_ = JS('', '$cast');
30 30
31 @JSExportName('is') 31 @JSExportName('is')
32 final is_ = JS('', '$instanceOf'); 32 final is_ = JS('', '$instanceOf');
33 33
34 final global = JS('', 'typeof window == "undefined" ? global : window'); 34 @JSExportName('global')
35 final global_ = JS('', 'typeof window == "undefined" ? global : window');
35 final JsSymbol = JS('', 'Symbol'); 36 final JsSymbol = JS('', 'Symbol');
36 37
37 // TODO(vsm): This is referenced (as init.globalState) from 38 // TODO(vsm): This is referenced (as init.globalState) from
38 // isolate_helper.dart. Where should it go? 39 // isolate_helper.dart. Where should it go?
39 // See: https://github.com/dart-lang/dev_compiler/issues/164 40 // See: https://github.com/dart-lang/dev_compiler/issues/164
40 // exports.globalState = null; 41 // exports.globalState = null;
41 // TODO(ochafik). 42 // TODO(ochafik).
42 // _js_helper.checkNum = operations.notNull; 43 // _js_helper.checkNum = operations.notNull;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698