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

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

Issue 1649583002: allow JS builtin to be typed as needed (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index de81b79fc2b8464b56030b5a7948c34bee836c3f..412f7803d8618e767342fe23eb166824d87a204c 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -390,13 +390,13 @@ dart_library.library('dart/js', null, /* Imports */[
function allowInteropCaptureThis(f) {
let ret = exports._interopCaptureThisExpando.get(f);
if (ret == null) {
- ret = dart.as(function() {
+ ret = function() {
let args = [this];
for (let arg of arguments) {
args.push(arg);
}
return f(...args);
- }, core.Function);
+ };
exports._interopCaptureThisExpando.set(f, ret);
}
return ret;

Powered by Google App Engine
This is Rietveld 408576698