forked from javascript-obfuscator/javascript-obfuscator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed runtime error `Uncaught SyntaxError: yield is a reserved identi…
…fier` when `deadCodeInjection` is enabled
- Loading branch information
sanex3339
committed
Jul 27, 2020
1 parent
27a9e18
commit 5a66643
Showing
13 changed files
with
141 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export enum StringSeparator { | ||
Dot = '.', | ||
Comma = ',', | ||
Dot = '.', | ||
VerticalLine = '|' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...nal-tests/node-transformers/dead-code-injection-transformers/fixtures/yield-expression.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(async function * (){ | ||
if (true) { | ||
var foo = function () { | ||
console.log('abc'); | ||
}; | ||
var bar = function () { | ||
console.log('def'); | ||
}; | ||
var baz = function () { | ||
console.log('ghi'); | ||
}; | ||
var bark = function () { | ||
console.log('jkl'); | ||
}; | ||
|
||
if (true) { | ||
yield foo(); | ||
} | ||
|
||
foo(); | ||
bar(); | ||
baz(); | ||
bark(); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,63 +424,63 @@ | |
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.15.2.tgz#927997342bb9f4a5185a86e6579a0a18afc33b0a" | ||
integrity sha512-67ZgZpAlhIICIdfQrB5fnDvaKFcDxpKibxznfYRVAT4mQE41Dido/3Ty+E3xGBmTogc5+0Qb8tWhna+5B8z1iQ== | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.0.tgz#0f91aa3c83d019591719e597fbdb73a59595a263" | ||
integrity sha512-4OEcPON3QIx0ntsuiuFP/TkldmBGXf0uKxPQlGtS/W2F3ndYm8Vgdpj/woPJkzUc65gd3iR+qi3K8SDQP/obFg== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.1.tgz#d144c49a9a0ffe8dd704bb179c243df76c111bc9" | ||
integrity sha512-3DB9JDYkMrc8Au00rGFiJLK2Ja9CoMP6Ut0sHsXp3ZtSugjNxvSSHTnKLfo4o+QmjYBJqEznDqsG1zj4F2xnsg== | ||
dependencies: | ||
"@typescript-eslint/experimental-utils" "3.7.0" | ||
"@typescript-eslint/experimental-utils" "3.7.1" | ||
debug "^4.1.1" | ||
functional-red-black-tree "^1.0.1" | ||
regexpp "^3.0.0" | ||
semver "^7.3.2" | ||
tsutils "^3.17.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.0.tgz#0ee21f6c48b2b30c63211da23827725078d5169a" | ||
integrity sha512-xpfXXAfZqhhqs5RPQBfAFrWDHoNxD5+sVB5A46TF58Bq1hRfVROrWHcQHHUM9aCBdy9+cwATcvCbRg8aIRbaHQ== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.1.tgz#ab036caaed4c870d22531d41f9352f3147364d61" | ||
integrity sha512-TqE97pv7HrqWcGJbLbZt1v59tcqsSVpWTOf1AqrWK7n8nok2sGgVtYRuGXeNeLw3wXlLEbY1MKP3saB2HsO/Ng== | ||
dependencies: | ||
"@types/json-schema" "^7.0.3" | ||
"@typescript-eslint/types" "3.7.0" | ||
"@typescript-eslint/typescript-estree" "3.7.0" | ||
"@typescript-eslint/types" "3.7.1" | ||
"@typescript-eslint/typescript-estree" "3.7.1" | ||
eslint-scope "^5.0.0" | ||
eslint-utils "^2.0.0" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.0.tgz#3e9cd9df9ea644536feb6e5acdb8279ecff96ce9" | ||
integrity sha512-2LZauVUt7jAWkcIW7djUc3kyW+fSarNEuM3RF2JdLHR9BfX/nDEnyA4/uWz0wseoWVZbDXDF7iF9Jc342flNqQ== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.1.tgz#5d9ccecb116d12d9c6073e9861c57c9b1aa88128" | ||
integrity sha512-W4QV/gXvfIsccN8225784LNOorcm7ch68Fi3V4Wg7gmkWSQRKevO4RrRqWo6N/Z/myK1QAiGgeaXN57m+R/8iQ== | ||
dependencies: | ||
"@types/eslint-visitor-keys" "^1.0.0" | ||
"@typescript-eslint/experimental-utils" "3.7.0" | ||
"@typescript-eslint/types" "3.7.0" | ||
"@typescript-eslint/typescript-estree" "3.7.0" | ||
"@typescript-eslint/experimental-utils" "3.7.1" | ||
"@typescript-eslint/types" "3.7.1" | ||
"@typescript-eslint/typescript-estree" "3.7.1" | ||
eslint-visitor-keys "^1.1.0" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.0.tgz#09897fab0cb95479c01166b10b2c03c224821077" | ||
integrity sha512-reCaK+hyKkKF+itoylAnLzFeNYAEktB0XVfSQvf0gcVgpz1l49Lt6Vo9x4MVCCxiDydA0iLAjTF/ODH0pbfnpg== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.1.tgz#90375606b2fd73c1224fe9e397ee151e28fa1e0c" | ||
integrity sha512-PZe8twm5Z4b61jt7GAQDor6KiMhgPgf4XmUb9zdrwTbgtC/Sj29gXP1dws9yEn4+aJeyXrjsD9XN7AWFhmnUfg== | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.0.tgz#66872e6da120caa4b64e6b4ca5c8702afc74738d" | ||
integrity sha512-xr5oobkYRebejlACGr1TJ0Z/r0a2/HUf0SXqPvlgUMwiMqOCu/J+/Dr9U3T0IxpE5oLFSkqMx1FE/dKaZ8KsOQ== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.1.tgz#ce1ffbd0fa53f34d4ce851a7a364e392432f6eb3" | ||
integrity sha512-m97vNZkI08dunYOr2lVZOHoyfpqRs0KDpd6qkGaIcLGhQ2WPtgHOd/eVbsJZ0VYCQvupKrObAGTOvk3tfpybYA== | ||
dependencies: | ||
"@typescript-eslint/types" "3.7.0" | ||
"@typescript-eslint/visitor-keys" "3.7.0" | ||
"@typescript-eslint/types" "3.7.1" | ||
"@typescript-eslint/visitor-keys" "3.7.1" | ||
debug "^4.1.1" | ||
glob "^7.1.6" | ||
is-glob "^4.0.1" | ||
lodash "^4.17.15" | ||
semver "^7.3.2" | ||
tsutils "^3.17.1" | ||
|
||
"@typescript-eslint/[email protected].0": | ||
version "3.7.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.0.tgz#ac0417d382a136e4571a0b0dcfe52088cb628177" | ||
integrity sha512-k5PiZdB4vklUpUX4NBncn5RBKty8G3ihTY+hqJsCdMuD0v4jofI5xuqwnVcWxfv6iTm2P/dfEa2wMUnsUY8ODw== | ||
"@typescript-eslint/[email protected].1": | ||
version "3.7.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.1.tgz#b90191e74efdee656be8c5a30f428ed16dda46d1" | ||
integrity sha512-xn22sQbEya+Utj2IqJHGLA3i1jDzR43RzWupxojbSWnj3nnPLavaQmWe5utw03CwYao3r00qzXfgJMGNkrzrAA== | ||
dependencies: | ||
eslint-visitor-keys "^1.1.0" | ||
|
||
|