Index: sdk/lib/_internal/js_runtime/lib/js_helper.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/js_helper.dart b/sdk/lib/_internal/js_runtime/lib/js_helper.dart |
index 20ac448df5fd9988f1c7e5cc0d168ee7e502a7ee..fdc1ee23e65d7129262b1de1dbd330773de1ab8e 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/js_helper.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/js_helper.dart |
@@ -2570,9 +2570,9 @@ abstract class Closure implements Function { |
// captured variable `functionType` isn't reused. |
signatureFunction = |
JS('', |
- '''(function(t) { |
- return function(){ return #(t); }; |
- })(#)''', |
+ '''(function(getType, t) { |
+ return function(){ return getType(t); }; |
+ })(#, #)''', |
RAW_DART_FUNCTION_REF(getType), |
functionType); |
} else if (!isStatic |