| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| index c819db8f1598081ec5d835faddc888125df8c0de..30577f69bec0a31dc6afa3a86b9b9f56a5042deb 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -859,9 +859,9 @@ public class DartCompiler {
|
| Closeables.close(r, failed);
|
| }
|
|
|
| - // auto-magically define "assert" function
|
| + // auto-magically define function to use instead of "assert" statement
|
| if (dartSrc.getUri().toString().equals("dart://core/object.dart")) {
|
| - srcCode += "\nvoid assert(x) {}";
|
| + srcCode += "\nvoid " + Elements.ASSERT_FUNCTION_NAME + "(x) {}";
|
| }
|
|
|
| // inject "Type" type from 1.0 M1 specification
|
|
|