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

Unified Diff: sdk/lib/_internal/js_runtime/lib/js_helper.dart

Issue 1436263002: dart2js: Forbid # placeholders in JS function bodies. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « sdk/lib/_internal/js_runtime/lib/async_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/async_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698