Function Reordering randomly reorders function declarations.
// @jscrambler enable functionReordering
The following example contains five function declarations and two function expressions:
function a () { /* body */ }
function b () { /* body */ }
function c () { /* body */ }
function d () { /* body */ }
function e () { /* body */ }
var f = function () { /* body */ }
var g = function () { /* body */ }
All function declarations have been reordered but the function expressions haven't:
function c () { /* body */ }
function e () { /* body */ }
var f = function () { /* body */ }
function b () { /* body */ }
function d () { /* body */ }
var g = function () { /* body */ }
function a () { /* body */ }
Browser | Compatible Versions | Tested Versions | Notes |
---|---|---|---|
Chrome | 80+ | 80+ | |
Firefox | 90+ | 90+ | |
Internet Explorer | 8+ | 8+ | |
Microsoft Edge | 116+ | 116+ | |
Safari | 13.1+ | 13.1+ |
Example:
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "functionReordering"
}
]
}