| Index: sdk/lib/_internal/compiler/implementation/js/builder.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js/builder.dart b/sdk/lib/_internal/compiler/implementation/js/builder.dart
|
| index 6f6025e770c8bd2c2c6d4a472097252f2ee773ab..ea316a7fa57f4e93cca44f515dc1f7cead653c77 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js/builder.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js/builder.dart
|
| @@ -679,7 +679,7 @@ class MiniJsParser {
|
| expectCategory(RSQUARE);
|
| }
|
| return new ArrayInitializer(values.length, values);
|
| - } else if (last.startsWith("/")) {
|
| + } else if (last != null && last.startsWith("/")) {
|
| String regexp = getDelimited(lastPosition);
|
| getToken();
|
| String flags = lastToken;
|
|
|