fix deprecated return from visitor method api
This commit is contained in:
@@ -12,7 +12,7 @@ suite("traversal path", function () {
|
||||
plugins: [new Plugin("foobar", {
|
||||
visitor: {
|
||||
FunctionDeclaration: function () {
|
||||
return "console.whatever()";
|
||||
this.replaceWithSourceString("console.whatever()");
|
||||
}
|
||||
}
|
||||
})]
|
||||
|
||||
Reference in New Issue
Block a user