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

Unified Diff: pkg/compiler/lib/src/universe/universe.dart

Issue 1325843003: Add optional message to assert in Dart2js. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Reintroduce assertHelper for asserts without messages. Created 5 years, 3 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/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index 4530400e1cbaffc794effa09c6a3e22e636bd033..afdd48abbf517a6da1f65acd455c1593a918ef50 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -826,9 +826,6 @@ class Selector {
bool get isOperator => kind == SelectorKind.OPERATOR;
bool get isUnaryOperator => isOperator && argumentCount == 0;
- /** Check whether this is a call to 'assert'. */
- bool get isAssert => isCall && identical(name, "assert");
-
/**
* The member name for invocation mirrors created from this selector.
*/
@@ -882,8 +879,7 @@ class Selector {
bool sameNameHack(Element element, World world) {
// TODO(ngeoffray): Remove workaround checks.
return element.isConstructor ||
- name == element.name ||
- name == 'assert' && world.isAssertMethod(element);
+ name == element.name;
}
bool applies(Element element, World world) {

Powered by Google App Engine
This is Rietveld 408576698