| Index: sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart (revision 17449)
|
| +++ sdk/lib/_internal/compiler/implementation/js_backend/minify_namer.dart (working copy)
|
| @@ -21,7 +21,9 @@
|
|
|
| // You can pass an invalid identifier to this and unlike its non-minifying
|
| // counterpart it will never return the proposedName as the new fresh name.
|
| - String getFreshName(String proposedName, Set<String> usedNames) {
|
| + String getFreshName(String proposedName,
|
| + Set<String> usedNames,
|
| + bool ensureSafe) {
|
| var freshName = _getUnusedName(proposedName, usedNames);
|
| usedNames.add(freshName);
|
| return freshName;
|
| @@ -35,7 +37,9 @@
|
| }
|
|
|
| void reserveBackendNames() {
|
| - for (var name in JsNames.reservedNativeProperties) {
|
| + // TODO(sra): We need a complete list from the DOM.
|
| + const reservedNativeProperties = const <String>["x", "y", "z"];
|
| + for (var name in reservedNativeProperties) {
|
| if (name.length < 3) {
|
| instanceNameMap[name] = name;
|
| }
|
|
|