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

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

Issue 1207313002: initial sync*, part of #221 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/collection.js
diff --git a/lib/runtime/dart/collection.js b/lib/runtime/dart/collection.js
index b127922a2dcde77248039cb5e212aa40852273c9..2d6a57a71a2af12ab0057e269addf509a0d459c1 100644
--- a/lib/runtime/dart/collection.js
+++ b/lib/runtime/dart/collection.js
@@ -3630,7 +3630,7 @@ dart_library.library('dart/collection', null, /* Imports */[
containsValue(value) {
let found = false;
let initialSplayCount = this[_splayCount];
- let visit = node => {
+ let visit = (function(node) {
while (node != null) {
if (dart.equals(node.value, value))
return true;
@@ -3642,7 +3642,7 @@ dart_library.library('dart/collection', null, /* Imports */[
node = dart.as(node.left, _SplayTreeMapNode);
}
return false;
- };
+ }).bind(this);
dart.fn(visit, core.bool, [_SplayTreeMapNode]);
return visit(dart.as(this[_root], _SplayTreeMapNode));
}
« no previous file with comments | « lib/runtime/dart/async.js ('k') | lib/runtime/dart/convert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698