Title: [Bug] Extending a boolean literal results in SyntaxError · Issue #1131 · javascript-obfuscator/javascript-obfuscator · GitHub
Open Graph Title: [Bug] Extending a boolean literal results in SyntaxError · Issue #1131 · javascript-obfuscator/javascript-obfuscator
X Title: [Bug] Extending a boolean literal results in SyntaxError · Issue #1131 · javascript-obfuscator/javascript-obfuscator
Description: When the input code contains a class that extends a boolean literal, the output code results in SyntaxError. Expected Behavior Obfuscating the following code should output a valid program. class C extends true {} Current Behavior The obf...
Open Graph Description: When the input code contains a class that extends a boolean literal, the output code results in SyntaxError. Expected Behavior Obfuscating the following code should output a valid program. class C ...
X Description: When the input code contains a class that extends a boolean literal, the output code results in SyntaxError. Expected Behavior Obfuscating the following code should output a valid program. class C ...
Opengraph URL: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] Extending a boolean literal results in SyntaxError","articleBody":"\u003c!-- Love javascript-obfuscator? Please consider supporting our collective:\r\n👉 https://opencollective.com/javascript-obfuscator/donate --\u003e\r\n\r\n\u003c!--- Provide a general summary of the issue in the Title above --\u003e\r\nWhen the input code contains a class that extends a boolean literal, the output code results in SyntaxError.\r\n\r\n## Expected Behavior\r\nObfuscating the following code should output a valid program.\r\n```js\r\nclass C extends true {}\r\n```\r\n\r\n## Current Behavior\r\nThe obfuscated code throws SyntaxError. (Early error)\r\n```js\r\nclass C extends![]{}\r\n```\r\n\r\n## Steps to Reproduce\r\n\u003c!--- Provide a link to a live example, or an unambiguous set of steps to --\u003e\r\n\u003c!--- reproduce this bug. Include code to reproduce, if relevant --\u003e\r\n1. Obfuscate the following program using https://obfuscator.io\r\n\r\n## Your Environment\r\n\u003c!--- Include as many relevant details about the environment you experienced the bug in --\u003e\r\n* Obfuscator version used: https://obfuscator.io\r\n* Node version used: v16.9.1\r\n\r\n# Stack trace\r\n\u003c!--- Include stack trace --\u003e\r\n\r\n## Minimal working example that will help to reproduce issue\r\n\u003c!--- Include code --\u003e\r\n","author":{"url":"https://github.com/f52985","@type":"Person","name":"f52985"},"datePublished":"2022-11-05T16:28:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1131/javascript-obfuscator/issues/1131"}
| 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:9ef83f83-4d04-9878-4db1-e810836fab30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B3C:35A8C:4625CA:676C99:6A6326DA |
| html-safe-nonce | 2668af188b7d035ad8426bb7b68a45b49e9a62b5d2710ead84782dc4f2593e12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjNDOjM1QThDOjQ2MjVDQTo2NzZDOTk6NkE2MzI2REEiLCJ2aXNpdG9yX2lkIjoiMTM2MDAzOTE0ODgyNTgxNDc0NiIsInJlZ2lvbl9lZGdlIjoid2VzdHVzMiIsInJlZ2lvbl9yZW5kZXIiOiJ3ZXN0dXMyIn0= |
| visitor-hmac | 6bd0a1b99ee3fe8e64bac8fc6a30264076a1db39bbdf50d7c124a9bd25f0215c |
| hovercard-subject-tag | issue:1437094042 |
| 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/1131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8dee9d6196751dcc9115d246aa124ec98625224c6febbe5a8447a5dc3cbe8ae6/javascript-obfuscator/javascript-obfuscator/issues/1131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8dee9d6196751dcc9115d246aa124ec98625224c6febbe5a8447a5dc3cbe8ae6/javascript-obfuscator/javascript-obfuscator/issues/1131 |
| og:image:alt | When the input code contains a class that extends a boolean literal, the output code results in SyntaxError. Expected Behavior Obfuscating the following code should output a valid program. class C ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | f52985 |
| 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