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

Unified Diff: lib/compiler/implementation/emitter.dart

Issue 10533151: Make undefined and null equivalent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 8 years, 6 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: lib/compiler/implementation/emitter.dart
diff --git a/lib/compiler/implementation/emitter.dart b/lib/compiler/implementation/emitter.dart
index 728f07805d7a1d670bfe7a1179672fea837f23ea..3ad4365e24ebb69c85afca92e0d8291fc9c9f5df 100644
--- a/lib/compiler/implementation/emitter.dart
+++ b/lib/compiler/implementation/emitter.dart
@@ -324,7 +324,7 @@ function(collectedClasses) {
} else {
Constant value = handler.initialVariableValues[element];
if (value == null) {
- argumentsBuffer[count] = '(void 0)';
+ argumentsBuffer[count] = NullConstant.JsNull;
} else {
if (!value.isNull()) {
// If the value is the null constant, we should not pass it

Powered by Google App Engine
This is Rietveld 408576698