Dead Code Injection

Potency Medium
Resilience Medium
Cost Low
Tags: dead code, injection, obfuscation, control flow


Dead Code Injection randomly injects dead code all over your program. This will make your program's control-flow more complex, thus harder to understand, without changing the original program's behavior. Dead code is generated using statements and expressions found in the source code that are wrapped in conditional statements hard to evaluate by a human (also known as opaque predicates). Dead Code will not be injected inside loops to avoid performance issues.

Code Annotation Example

// @jscrambler enable deadCodeInjection

Browser Compatibility

Browser Compatible Versions Tested Versions Notes
Chrome 50+ 50+
Firefox 50+ 40+
Internet Explorer 8+ 8+
Microsoft Edge 18+ 18+
Safari 9.1+ 9.1+

API Parameters


  "keys": {
    "accessKey": "XXXXXX",
    "secretKey": "YYYYYY"
  "applicationId": "ZZZZZZ",
  "params": [
      "name": "deadCodeInjection"