disable identifier resolution - fixes #1149
This commit is contained in:
parent
eedd431f2b
commit
ffdfb491eb
@ -547,6 +547,9 @@ export default class TraversalPath {
|
||||
var binding = this.scope.getBinding(this.node.name);
|
||||
if (!binding || !binding.constant) return;
|
||||
|
||||
// todo: take into consideration infinite recursion #1149
|
||||
return;
|
||||
|
||||
if (binding.path === this) {
|
||||
return this;
|
||||
} else {
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
function foo(bar) {
|
||||
var bar = bar[0];
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
function foo(bar) {
|
||||
var bar = bar[0];
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user