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
Using transformObjectKeys converts some single statement assignments into multiple statements. When this occurs in a single statement if block without braces no braces are added to keep the full assignment in the if block. This can cause undefined object errors.
Expected Behavior
This code should not have errors when the condition is false:
function hi() {
var i = 1;
tstArray = new Array(0);
if (i === 0)
tstArray[0] = {state1: "on", state2: "off"};
i += 1;
}
hi();
Current Behavior
function hi() {
var _0x106765 = 0x1;
tstArray = new Array(0x0);
if (_0x106765 === 0x0)
tstArray[0x0] = {};
tstArray[0x0]['state1'] = 'on';
tstArray[0x0]['state2'] = 'off';
_0x106765 += 0x1;
}
hi();
Using transformObjectKeys converts some single statement assignments into multiple statements. When this occurs in a single statement if block without braces no braces are added to keep the full assignment in the if block. This can cause undefined object errors.
Expected Behavior
This code should not have errors when the condition is false:
Current Behavior
Steps to Reproduce (for bugs)
Your Environment
Stack trace
Minimal working example that will help to reproduce issue
The text was updated successfully, but these errors were encountered: