Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: Unable to use await as an identifier #1127

@p51lee

Description

@p51lee

Expected Behavior

This input JavaScript code

// input.js
try { await; } catch { console.log("caught"); }

should print caught due to ReferenceError in try block. (free identifier await)

$ node --version
v18.11.0
$ node input.js
caught

Current Behavior

Obfuscator crashes when the input.js is given.
image

Note: var await; works fine.

Steps to Reproduce

  1. I used https://obfuscator.io/ (with default settings) to make this error.
  2. Paste input.js.
  3. Obfuscate.

Your Environment

Stack trace

Minimal working example that will help to reproduce issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions