Remove dead code in ScopedAliases
This code was from when the compiler represented shorthand object properties `const o = {x};` as a single STRING_KEY w/o children. Now all STRING_KEY nodes have exactly one child.
@@ -353,12 +353,7 @@ class ScopedAliases implements CompilerPass {
if (replacement.hasChildren()) {
replacement.getFirstChild().makeNonIndexableRecursive();
}
- if (aliasReference.isStringKey()) {
- checkState(!aliasReference.hasChildren());
- aliasReference.addChildToFront(replacement);
- } else {
aliasReference.replaceWith(replacement);
- }
compiler.reportChangeToEnclosingScope(replacement);
}
}
