aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-08-08 16:15:45 +0800
committerGitHub <noreply@github.com>2018-08-08 16:15:45 +0800
commitfc78423f1d9bfa10774a04563e37e130523bf46d (patch)
treeb70264ddd42d8a7b778753c6c0eea8cd98a32f09 /lib/scope.js
parent2a5277b391f11e49306fb5a46f6037763916da4a (diff)
downloadtracifyjs-fc78423f1d9bfa10774a04563e37e130523bf46d.tar.gz
tracifyjs-fc78423f1d9bfa10774a04563e37e130523bf46d.zip
clean up webkit quirks (#3229)
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/scope.js b/lib/scope.js
index ac7df7df..c88ce8fc 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -320,14 +320,6 @@ function next_mangled_name(scope, options, def) {
var in_use = names_in_use(scope, options);
var holes = scope.cname_holes;
var names = Object.create(null);
- // #179, #326
- // in Safari strict mode, something like (function x(x){...}) is a syntax error;
- // a function expression's argument cannot shadow the function expression's name
- if (scope instanceof AST_Function && scope.name && def.orig[0] instanceof AST_SymbolFunarg) {
- var tricky_def = scope.name.definition();
- // the function's mangled_name is null when keep_fnames is true
- names[tricky_def.mangled_name || tricky_def.name] = true;
- }
var scopes = [ scope ];
def.references.forEach(function(sym) {
var scope = sym.scope;