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: sdk/lib/_internal/compiler/js_lib/async_patch.dart

Issue 538513002: Move js library back into compiler directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Patch file for the dart:async library. 5 // Patch file for the dart:async library.
6 6
7 import 'dart:_js_helper' show 7 import 'dart:_js_helper' show
8 patch, 8 patch,
9 Primitives, 9 Primitives,
10 convertDartClosureToJS, 10 convertDartClosureToJS,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 @patch 107 @patch
108 static Timer _createPeriodicTimer(Duration duration, 108 static Timer _createPeriodicTimer(Duration duration,
109 void callback(Timer timer)) { 109 void callback(Timer timer)) {
110 int milliseconds = duration.inMilliseconds; 110 int milliseconds = duration.inMilliseconds;
111 if (milliseconds < 0) milliseconds = 0; 111 if (milliseconds < 0) milliseconds = 0;
112 return new TimerImpl.periodic(milliseconds, callback); 112 return new TimerImpl.periodic(milliseconds, callback);
113 } 113 }
114 } 114 }
115 115
116 bool get _hasDocument => JS('String', 'typeof document') == 'object'; 116 bool get _hasDocument => JS('String', 'typeof document') == 'object';
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/annotations.dart ('k') | sdk/lib/_internal/compiler/js_lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698