We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i am throwing wakaru at a 3MB file bx-progressivewebapp.js preprocessed with webcrack -- same input code as in #110
the output code produces the runtime error
ReferenceError: bbb is not defined
let bbb = aaa.target; let ccc = bbb.parentElement;
No response
input
transform 1: replace bbb with target
bbb
target
let { target } = aaa; let ccc = target.parentElement;
transform 2: replace ccc with parentElement
ccc
parentElement
let { target } = aaa; let { parentElement } = target;
let { target } = aaa; let { parentElement } = bbb; // FIXME ReferenceError: bbb is not defined
i guess the problem is that the 2 transforms happen in parallel
and/or these are 2 separate transforms
The text was updated successfully, but these errors were encountered:
55e2938
similar
currently, wakaru produces this diff
{ - let al = aj.currentToken; + let { currentToken } = aj; aj.read(); if (aj.currentToken.tokenType === "EOF") {
expected: also replace aj.currentToken with currentToken
aj.currentToken
currentToken
edit: probably no. aj.currentToken can have side effects that are required
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
i am throwing wakaru at a 3MB file bx-progressivewebapp.js
preprocessed with webcrack -- same input code as in #110
the output code produces the runtime error
Input code
Reproduction
No response
Steps to reproduce
No response
Expected behavior
input
transform 1: replace
bbb
withtarget
transform 2: replace
ccc
withparentElement
Actual behavior
i guess the problem is that the 2 transforms happen in parallel
and/or these are 2 separate transforms
The text was updated successfully, but these errors were encountered: