fix maybeReplace wrong node callback bug
This commit is contained in:
parent
3c3746b21f
commit
6f230de01c
@ -37,7 +37,7 @@ var traverse = module.exports = function (parent, callbacks, blacklistTypes) {
|
||||
|
||||
// replace node
|
||||
var maybeReplace = function (result) {
|
||||
if (result != null) obj[key] = result;
|
||||
if (result != null) node = obj[key] = result;
|
||||
};
|
||||
|
||||
// enter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user