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

Unified Diff: pkg/compiler/lib/src/js_backend/namer.dart

Issue 2707933002: Tests for `void`.
Patch Set: More tests. Created 3 years, 10 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
Index: pkg/compiler/lib/src/js_backend/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index 7b7300a9fcadf3c2fadf01d3fc3042092aae15d4..324b0216cf2a9dc9235114d8f922e811d887da49 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -643,6 +643,9 @@ class Namer {
case JsGetName.FUNCTION_CLASS_TYPE_NAME:
ClassElement functionClass = commonElements.functionClass;
return runtimeTypeName(functionClass);
+ case JsGetName.VOID_CLASS_TYPE_NAME:
+ ClassElement voidClass = helpers.voidClass;
+ return runtimeTypeName(voidClass);
default:
reporter.reportErrorMessage(node, MessageKind.GENERIC,
{'text': 'Error: Namer has no name for "$name".'});

Powered by Google App Engine
This is Rietveld 408576698