Require jsInteropObject type to be resolved before we use it in native behaviors

This fixes a failing interop test in the bots.

R=sra@google.com

Review URL: https://codereview.chromium.org/1484273002 .
This commit is contained in:
Sigmund Cherem
2015-11-30 17:37:02 -08:00
parent 74d2846cb5
commit b837d63d47
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -818,8 +818,9 @@ class NativeBehavior {
// annotations. This means that to some degree we still use the return
// type to decide whether to include native types, even if we don't
// trust the type annotation.
typesInstantiated.add(
backend.helpers.jsJavaScriptObjectClass.thisType);
ClassElement cls = backend.helpers.jsJavaScriptObjectClass;
cls.ensureResolved(resolution);
typesInstantiated.add(cls.thisType);
} else {
// Otherwise, when the declared type is a Dart type, we do not
// register an allocation because we assume it cannot be instantiated
+1 -1
View File
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
@JS()
library js_typed_interop_test;
library js_dart_to_string_test;
import 'dart:html';