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

Unified Diff: lib/runtime/dart/convert.js

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart/convert.js
diff --git a/lib/runtime/dart/convert.js b/lib/runtime/dart/convert.js
index a5ba6200032f7e8cf2e813e3793a48416f07a74a..fef48e2fb0a20364cfa08d4a50630fd56592ee46 100644
--- a/lib/runtime/dart/convert.js
+++ b/lib/runtime/dart/convert.js
@@ -1,5 +1,10 @@
-var convert;
-(function(exports) {
+var convert = dart.defineLibrary(convert, {});
+var core = dart.lazyImport(core);
+var async = dart.import(async);
+var typed_data = dart.import(typed_data);
+var _internal = dart.lazyImport(_internal);
+var collection = dart.lazyImport(collection);
+(function(exports, core, async, typed_data, _internal, collection) {
'use strict';
let ASCII = dart.const(new AsciiCodec());
let _ASCII_MASK = 127;
@@ -91,7 +96,7 @@ var convert;
}
bind(source) {
dart.as(source, async.Stream$(S));
- return new async.Stream$(T).eventTransformed(source, (sink => new _ConverterStreamEventSink(this, sink)).bind(this));
+ return new (async.Stream$(T)).eventTransformed(source, (sink => new _ConverterStreamEventSink(this, sink)).bind(this));
}
}
Converter[dart.implements] = () => [async.StreamTransformer$(S, T)];
@@ -2429,4 +2434,4 @@ var convert;
exports.Utf8Codec = Utf8Codec;
exports.Utf8Encoder = Utf8Encoder;
exports.Utf8Decoder = Utf8Decoder;
-})(convert || (convert = {}));
+})(convert, core, async, typed_data, _internal, collection);

Powered by Google App Engine
This is Rietveld 408576698