MichaelXF / js-confuser

JS-Confuser is a JavaScript obfuscation tool to make your programs *impossible* to read.
https://js-confuser.com
MIT License
204 stars 32 forks source link

Object Extraction throws error "Cannot read property 'name' of undefined" #78

Closed MichaelXF closed 1 year ago

MichaelXF commented 1 year ago

Describe the bug:

Object Extraction throws an error while encountering a spread element node

Config and Small code sample

Config:

{
  target: "node",
  objectExtraction: true
}

Code:

var x = { firstName: "John", lastName: "Doe" }
var y = { ...x };

console.log(y);

Error:

TypeError: Cannot read property 'name' of undefined