fix deprecated return from visitor method api

This commit is contained in:
Sebastian McKenzie
2015-06-26 15:16:31 +01:00
parent 273a81fe1f
commit a2fb70bae3
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ suite("traversal path", function () {
plugins: [new Plugin("foobar", {
visitor: {
FunctionDeclaration: function () {
return "console.whatever()";
this.replaceWithSourceString("console.whatever()");
}
}
})]