Index: pkg/compiler/lib/src/js_backend/js_interop_analysis.dart |
diff --git a/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart b/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart |
index 2ce0623d4d3d7bbd09f546bff43c5d517600c763..6e40c7d4be72c4345674e21493677edeb5fd9622 100644 |
--- a/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart |
+++ b/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart |
@@ -68,11 +68,11 @@ class JsInteropAnalysis { |
ConstantValue value = constructedConstant.fields[nameField]; |
if (value.isString) { |
StringConstantValue stringValue = value; |
- backend.nativeDataBuilder |
+ backend.nativeClassDataBuilder |
.setJsInteropName(e, stringValue.primitiveValue.slowToString()); |
} else { |
// TODO(jacobr): report a warning if the value is not a String. |
- backend.nativeDataBuilder.setJsInteropName(e, ''); |
+ backend.nativeClassDataBuilder.setJsInteropName(e, ''); |
} |
enabledJsInterop = true; |
return; |