Index: frog/member_set.dart |
diff --git a/frog/member_set.dart b/frog/member_set.dart |
index 5912f54ca7b07237929eff507100f40fc36f12ef..0e0f2ef119bcba3daeadb01bc451bcc57e53b7b9 100644 |
--- a/frog/member_set.dart |
+++ b/frog/member_set.dart |
@@ -264,6 +264,16 @@ class InvokeKey { |
if (!(member.parameters.length == bareArgs && namedArgs == null)) { |
needsVarCall = true; |
} |
+ // TODO(jimhug): Egregious hack for isolates + DOM - see |
+ // Value._maybeWrapFunction for more details. |
+ if (member.library == world.dom) { |
+ for (var p in member.parameters) { |
+ if (p.type.getCallMethod() != null) { |
+ needsVarCall = true; |
+ } |
+ } |
+ } |
+ |
// TODO(jimhug): Should create a less specific version of args. |
if (member.canInvoke(context, args)) { |
if (member.isMethod) { |