Function Reordering
Potency Low
Resilience High
Cost None
Tags: functions, reorder, scramble, obfuscation
Description
Function Reordering randomly reorders function declarations.
Code Annotation Example
// @jscrambler enable functionReordering
Example
The following example contains five function declarations and two function expressions:
function a () { }
function b () { }
function c () { }
function d () { }
function e () { }
var f = function () { }
var g = function () { }
All function declarations have been reordered but the function expressions haven't:
function c () { }
function e () { }
var f = function () { }
function b () { }
function d () { }
var g = function () { }
function a () { }
Browser Compatibility
Browser | Compatible Versions | Tested Versions | Notes |
Chrome | 80+ | 80+ | |
Firefox | 80+ | 80+ | |
Internet Explorer | 8+ | 8+ | |
Microsoft Edge | 108+ | 108+ | |
Safari | 12.1+ | 12.1+ | |
API Parameters
Example:
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "functionReordering"
}
]
}