Title: Code doesn't work in Bun [selfDefending=true] · Issue #1404 · javascript-obfuscator/javascript-obfuscator · GitHub
Open Graph Title: Code doesn't work in Bun [selfDefending=true] · Issue #1404 · javascript-obfuscator/javascript-obfuscator
X Title: Code doesn't work in Bun [selfDefending=true] · Issue #1404 · javascript-obfuscator/javascript-obfuscator
Description: Hi, I'm using the settings {optionsPreset:'high-obfuscation',target:'node'} The resulting code runs successfully in Node, but doesn't work in Bun. I tested it and found the cause: if set selfDefending=false, Bun runs the code. How can we...
Open Graph Description: Hi, I'm using the settings {optionsPreset:'high-obfuscation',target:'node'} The resulting code runs successfully in Node, but doesn't work in Bun. I tested it and found the cause: if set selfDefend...
X Description: Hi, I'm using the settings {optionsPreset:'high-obfuscation',target:'node'} The resulting code runs successfully in Node, but doesn't work in Bun. I tested it and found the ...
Opengraph URL: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1404
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Code doesn't work in Bun [selfDefending=true]","articleBody":"Hi,\n\nI'm using the settings **{optionsPreset:'high-obfuscation',target:'node'}**\nThe resulting code runs successfully in Node, but doesn't work in Bun.\nI tested it and found the cause: \nif set **selfDefending=false**, Bun runs the code.\n\nHow can we get the code to work in Bun with **selfDefending=true**?\nThanks.","author":{"url":"https://github.com/denyaalt","@type":"Person","name":"denyaalt"},"datePublished":"2026-03-29T17:15:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1404/javascript-obfuscator/issues/1404"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd00736d-7300-0d7f-f0d2-d16475a8b1fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEB6:20E521:BAA9D4:10A7197:6A63268D |
| html-safe-nonce | 0ae458458c0f19abd118de88b984a7d80e17b88d5ccee2ef9a78f90fcae78b87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUI2OjIwRTUyMTpCQUE5RDQ6MTBBNzE5Nzo2QTYzMjY4RCIsInZpc2l0b3JfaWQiOiIyNzkzNTc1NTQ1NzYyNDI0NDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f89f0817a6ed8c29fad844a19e7246a2f8ebb8a8781032a154b5001b9500c2b5 |
| hovercard-subject-tag | issue:4165178135 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascript-obfuscator/javascript-obfuscator/1404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8edf867833a5db98d3640749a2946c0ac12dc1059ba94bf6888ae576ee2493e3/javascript-obfuscator/javascript-obfuscator/issues/1404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8edf867833a5db98d3640749a2946c0ac12dc1059ba94bf6888ae576ee2493e3/javascript-obfuscator/javascript-obfuscator/issues/1404 |
| og:image:alt | Hi, I'm using the settings {optionsPreset:'high-obfuscation',target:'node'} The resulting code runs successfully in Node, but doesn't work in Bun. I tested it and found the cause: if set selfDefend... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | denyaalt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| turbo-cache-control | no-preview |
| go-import | github.com/javascript-obfuscator/javascript-obfuscator git https://github.com/javascript-obfuscator/javascript-obfuscator.git |
| octolytics-dimension-user_id | 23015672 |
| octolytics-dimension-user_login | javascript-obfuscator |
| octolytics-dimension-repository_id | 58360147 |
| octolytics-dimension-repository_nwo | javascript-obfuscator/javascript-obfuscator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58360147 |
| octolytics-dimension-repository_network_root_nwo | javascript-obfuscator/javascript-obfuscator |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width