Skip to content

Easy string concat not being resolved #7

@wizche

Description

@wizche

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions