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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1977003002: Update dart:collection. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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:
Download patch
« no previous file with comments | « no previous file | test/codegen/corelib/set_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 0f5133a04f83d8af96e7c1211ef6cf4ad73d0457..65df1cef964bd84a0196a417739a9d6e0d29d05c 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -21596,8 +21596,10 @@ dart_library.library('dart_sdk', null, /* Imports */[
}
static from(elements) {
let result = collection.HashSet$(E).new();
- for (let e of elements)
- result.add(dart.as(e, E));
+ for (let e of elements) {
+ let element = dart.as(e, E);
+ result.add(element);
+ }
return result;
}
[Symbol.iterator]() {
@@ -22114,7 +22116,8 @@ dart_library.library('dart_sdk', null, /* Imports */[
static from(elements) {
let result = collection.LinkedHashSet$(E).new();
for (let element of elements) {
- result.add(dart.as(element, E));
+ let e = dart.as(element, E);
+ result.add(e);
}
return result;
}
@@ -23014,7 +23017,8 @@ dart_library.library('dart_sdk', null, /* Imports */[
static from(elements) {
let list = new (collection.DoubleLinkedQueue$(E))();
for (let e of elements) {
- list.addLast(dart.as(e, E));
+ let element = dart.as(e, E);
+ list.addLast(element);
}
return dart.as(list, collection.DoubleLinkedQueue$(E));
}
@@ -24232,7 +24236,8 @@ dart_library.library('dart_sdk', null, /* Imports */[
if (isValidKey === void 0) isValidKey = null;
let result = new (collection.SplayTreeSet$(E))(compare, isValidKey);
for (let element of elements) {
- result.add(dart.as(element, E));
+ let e = dart.as(element, E);
+ result.add(e);
}
return result;
}
« no previous file with comments | « no previous file | test/codegen/corelib/set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698