mirror of
https://github.com/jehna/humanify.git
synced 2026-04-27 01:26:00 +03:00
[GH-ISSUE #553] Support with in source files #88
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nahidul292 on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/jehna/humanify/issues/553
SyntaxError: unknown: 'with' in strict mode. (5:4)
3 | }, SaEgNw7) {
4 | while (Mf8M0u + riQMkU + UcqOgo !== -31) {
@brianjenkins94 commented on GitHub (Jul 31, 2025):
Are you trying to process a file that uses the
withkeyword?@nahidul292 commented on GitHub (Jul 31, 2025):
Yes, I am
Is there any workaround to deobfuscate such files? @brianjenkins94
@brianjenkins94 commented on GitHub (Jul 31, 2025):
You would need to add a non-strict
sourceTypehere: https://github.com/jehna/humanify/blob/main/src/babel-utils.ts#L11@nahidul292 commented on GitHub (Jul 31, 2025):
I apologize would you mind to share a bit more details?
@0xdevalias commented on GitHub (Aug 4, 2025):
It's using Babel's
transform:Which takes these options:
The
sourceTypeoption in particular seems to mention strict mode, and defaults tomodule, which enforces strict mode; so maybe try the most appropriate of the others?: