fix advanced example in README - #18
Conversation
|
Hello everyone, it is always discouraging when examples of something that is new to you doesn't work as expected. I fixed advanced example to work for me like follows `` // Obfuscated source const $script = refactor(src, commonMethods); const strings = $script( const destringifyDeclarator = $script( destringifyDeclarator.rename('destringify'); const destringifyOffset = destringifyDeclarator.$( $script( $script( $script.convertComputedToStatic(); console.log($script.print()); there were 2 issues:
Thanks! |
I'm also not sure if it's me making a mistake somewhere,
but the following line of code doesn't seem to work for me:
Seems the
firstfunction is returning pretty much the same as whatdestringifyOffsetalready gives me at that point. The following does work for me:
Didn't modify that in the README example in this PR yet, as I do not know if it's a bug, desired or something I'm simply doing wrong.