illuminatejs icon indicating copy to clipboard operation
illuminatejs copied to clipboard

Easy string concat not being resolved

Open wizche opened this issue 6 years ago • 0 comments

Simple string concat like this:

fchzbi = 'funct';
crldyth = 'ion';
var gkphk = fchzbi + crldyth;

is simplified to

fchzbi = "funct";
crldyth = "ion";
const gkphk = fchzbi + crldyth;

instead of: const gkphk = "function";

it looks like the problem resides in how the variable are defined (implicit, without var/const aka not strictly compliant to standard).

If the code is:

var fchzbi = 'funct';
var crldyth = 'ion';
var gkphk = fchzbi + crldyth;

The string is being resolved. This means illuminatejs should be able to handle non-defined variable assignments like described in this test case.

Extensive example: https://pastebin.com/raw/DhguSR4i

wizche avatar Jun 17 '19 14:06 wizche