You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not planned. Too error-prone. It would most likely struggle with dynamic keys, just like Obfuscator.io's renameProperties (even on 'safe' mode):
// Input(function(){constfoo={prop1: 1,prop2: 2,calc: function(){returnthis.prop1+this.prop2;},};functiondoStuffWithFoo(foo){varcalc="cal"+"c";console.log(foo[calc]());}doStuffWithFoo(foo);})();// 3// Output(function(){const_0x1ded56={'_0x7aa8af': 0x1,'_0x204e8e': 0x2,'_0x3d83a6': function(){returnthis['_0x7aa8af']+this['_0x204e8e'];}};function_0x19b102(_0x420ffb){var_0x643b75='cal'+'c';console['log'](_0x420ffb[_0x643b75]());}_0x19b102(_0x1ded56);}());// Uncaught TypeError: _0x18422a[_0x4ce7a3] is not a function
Object Extraction is safe alternative that can be used to rename property names by first converting them to individual variables.
Unless there is a concrete way to safely replace property names then I won't risk adding it. PRs are welcome to implement it.
if values are static this could be posible if you pre evaluate all string conversions but it woudl be horrible to implement plus if it acces a property from for example a http request or something that is not in the code itself would be imposible.
That's it we need that xD
The text was updated successfully, but these errors were encountered: