| Index: sdk/lib/_internal/compiler/implementation/js/printer.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js/printer.dart b/sdk/lib/_internal/compiler/implementation/js/printer.dart
|
| index e29f7bb489290ded16df154daa433aab8f2e74b2..ce2e056f35f72be634bac2bd774c91bfe86391db 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js/printer.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js/printer.dart
|
| @@ -15,7 +15,7 @@ class Printer implements NodeVisitor {
|
| final Namer namer;
|
| bool pendingSemicolon = false;
|
| bool pendingSpace = false;
|
| - static final identifierRegexp = new RegExp(r'^[a-zA-Z_0-9$]');
|
| + static final identifierCharacterRegExp = new RegExp(r'^[a-zA-Z_0-9$]');
|
|
|
| Printer(leg.Compiler compiler, { allowVariableMinification: true })
|
| : shouldCompressOutput = compiler.enableMinification,
|
| @@ -51,7 +51,7 @@ class Printer implements NodeVisitor {
|
| outBuffer.add(";");
|
| }
|
| if (pendingSpace &&
|
| - (!shouldCompressOutput || identifierRegexp.hasMatch(str))) {
|
| + (!shouldCompressOutput || identifierCharacterRegExp.hasMatch(str))) {
|
| outBuffer.add(" ");
|
| }
|
| pendingSpace = false;
|
|
|