Not working with Async/Await
See original GitHub issueHow to make it work with async/await?
test.js
export default class Request {
static async get() {
return window.fetch("...");
}
}
javascript-obfuscator test.js
On Windows Powershell:
^
Error: Line 2: Unexpected identifier
> ...tic async get() {...
at Function.value (....\node_modules\javascript-obfuscator\dist\index.js:1:63377)
Exit code: 1
Tried yarn add
using both #master
branch and @latest
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Async/await - The Modern JavaScript Tutorial
In actuality, The `await` keyword breaks the synchronous flow and creates a new promise handler from every subsequent statement in the function; ...
Read more >javascript async/await not working - Stack Overflow
I am using the async/await keywords, but not having any luck. Any help appreciated. This is my attempt to try getting it to...
Read more >javascript - await does not wait for Promise to finish
So it's a bit weird. The "waiting" happens within that aync function, not your initial js function. consider this example
Read more >Do not use forEach with async-await - gists · GitHub
The problem. Array.prototype.forEach is not designed for asynchronous code. (It was not suitable for promises, and it is not suitable for ...
Read more >Use Promise.all to Stop Async/Await from Blocking Execution ...
In async functions, await blocks any code that follows from executing until the Promise has resolves, which means that our refactored code doesn't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
javascript-obfuscator@0.15.0
just published to the npm!I reopened issue untill
0.15.0
release