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

Unified Diff: sdk/lib/js/dart2js/js_dart2js.dart

Issue 1412193009: Fix bug in allowInteropCaptureThis that caused JavaScript objects to accidentally be wrapped. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | tests/html/js_typed_interop_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/js/dart2js/js_dart2js.dart
diff --git a/sdk/lib/js/dart2js/js_dart2js.dart b/sdk/lib/js/dart2js/js_dart2js.dart
index 417876e5738a9a246e767ab7454883f0b1c45ad9..f98b29d73cc69548c8d3a5ea0cc78df6b5588000 100644
--- a/sdk/lib/js/dart2js/js_dart2js.dart
+++ b/sdk/lib/js/dart2js/js_dart2js.dart
@@ -704,7 +704,7 @@ _callDartFunctionFast(callback, List arguments) {
}
_callDartFunctionFastCaptureThis(callback, self, List arguments) {
- return _convertToJS(Function.apply(callback, [self]..addAll(arguments)));
+ return Function.apply(callback, [self]..addAll(arguments));
}
Function allowInterop(Function f) {
« no previous file with comments | « no previous file | tests/html/js_typed_interop_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698