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

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

Issue 1641643004: Roll analyzer to 0.27.2-alpha.1 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rerun tests and format Created 4 years, 11 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
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html_common.js
diff --git a/lib/runtime/dart/html_common.js b/lib/runtime/dart/html_common.js
index 9fb0e08e579778e69c10a0f6c676f58d53ec800c..7242f6d7b0f3600dbf18e6b51bc280a8a4a2ad96 100644
--- a/lib/runtime/dart/html_common.js
+++ b/lib/runtime/dart/html_common.js
@@ -299,7 +299,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
if (typeof e == 'number') return e;
if (typeof e == 'string') return e;
if (dart.is(e, core.DateTime)) {
- return convertDartToNative_DateTime(dart.as(e, core.DateTime));
+ return convertDartToNative_DateTime(e);
}
if (dart.is(e, core.RegExp)) {
dart.throw(new core.UnimplementedError('structured clone of RegExp'));
@@ -315,16 +315,16 @@ dart_library.library('dart/html_common', null, /* Imports */[
if (copy != null) return copy;
copy = this.newJsMap();
this.writeSlot(slot, copy);
- dart.dsend(e, 'forEach', dart.fn(((key, value) => {
+ e.forEach(dart.fn(((key, value) => {
this.putIntoMap(copy, key, this.walk(value));
- }).bind(this)));
+ }).bind(this), dart.void, [dart.dynamic, dart.dynamic]));
return copy;
}
if (dart.is(e, core.List)) {
let slot = this.findSlot(e);
let copy = this.readSlot(slot);
if (copy != null) return copy;
- copy = this.copyList(dart.as(e, core.List), slot);
+ copy = this.copyList(e, slot);
return copy;
}
dart.throw(new core.UnimplementedError('structured clone of other type'));
@@ -478,7 +478,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
dart.fn(convertNativeToDart_ImageData);
function convertDartToNative_ImageData(imageData) {
if (dart.is(imageData, _TypedImageData)) {
- return {data: dart.dload(imageData, 'data'), height: dart.dload(imageData, 'height'), width: dart.dload(imageData, 'width')};
+ return {data: imageData.data, height: imageData.height, width: imageData.width};
}
return imageData;
}
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698