Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy string concat not being resolved #7

Open
wizche opened this issue Jun 17, 2019 · 0 comments
Open

Easy string concat not being resolved #7

wizche opened this issue Jun 17, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@wizche
Copy link
Contributor

wizche commented Jun 17, 2019

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 wizche added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant