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

Unified Diff: pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart

Issue 2962263002: fix #30030, fix #27327 - fix tearoffs and various Object member bugs (Closed)
Patch Set: fix Created 3 years, 5 months 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 | « pkg/dev_compiler/lib/src/compiler/js_interop.dart ('k') | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart b/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
index 28bb62697f891131c661f9ce32f210817f4a1133..d8b8902e63990c5d4dcedb3639a4e0e1f1e2ca41 100644
--- a/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
+++ b/pkg/dev_compiler/lib/src/compiler/js_typeref_codegen.dart
@@ -25,8 +25,10 @@ abstract class JsTypeRefCodegen {
/// Finds the qualified path to the type.
JS.TypeRef _emitTopLevelTypeRef(DartType type) {
var e = type.element;
- return new JS.TypeRef.qualified(
- [emitLibraryName(e.library), new JS.Identifier(getJSExportName(e))]);
+ return new JS.TypeRef.qualified([
+ emitLibraryName(e.library),
+ new JS.Identifier(getJSExportName(e) ?? e.name)
+ ]);
}
JS.TypeRef emitTypeRef(DartType type) {
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/js_interop.dart ('k') | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698