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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart

Issue 2774623004: Fix for dcall on callable class (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | tests/language_strong/callable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
index 20001cef3e56793e142b78209742336743dc07ec..02ade29b40d32ed744f02737c3bd317964eb38d5 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
@@ -243,7 +243,7 @@ _checkAndCall(f, ftype, obj, typeArgs, args, name) => JS(
// Grab the `call` method if it's not a function.
if ($f != null) {
$ftype = $getMethodType($getType($f), 'call');
- $f = $f.call;
+ $f = f.call ? $bind($f, 'call') : void 0;
}
if (!($f instanceof Function)) {
return callNSM();
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | tests/language_strong/callable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698