8000 Two import statements exposes variables · Issue #360 · javascript-obfuscator/javascript-obfuscator · GitHub
[go: up one dir, main page]

Skip to content
Two import statements exposes variables #360
Closed
@durdev

Description

@durdev

The problem

Trying to obfuscate the following code:

import ok from 'lib1';
import ok2 from 'lib2';

let simple = null;
let test = null;

Results in:

import _0x19aaee from'lib1';import _0x279d2c from'lib2';let simple=null;let test=null;

Exposing the let simple=null;let test=null; even if Rename Globals is enabled.
It seems to me that it is not right.

But with only one import statement like:

import ok2 from 'lib2';

let simple = null;
let test = null;

Results in:

import _0x408065 from'lib2';let _0x39e0d2=null;let _0x5f02c4=null;

I think this is correct 👍

Configs used

  • Obfuscator version used: 0.18.1 (tested on the website too)
  • Compact code: true
  • Rename Globals: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0