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

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index e005cd7bba52e4bd0488c9d58a1d8ddeeac64166..eb87bb1a7ea225d43cf5a4df735976a8cd8fcae1 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -805,7 +805,7 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
classElement.implementation.forEachInstanceField(
(ClassElement enclosing, Element field) {
Constant fieldValue = fieldValues[field];
- if (fieldValue === null) {
+ if (fieldValue == null) {
// Use the default value.
fieldValue = compiler.compileConstant(field);
}

Powered by Google App Engine
This is Rietveld 408576698