Created
August 19, 2020 16:34
-
-
Save FFKL/37a65ad75f4239ba33376b5bdeddfba3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Item { | |
constructor() { | |
return new Promise((resolve) => setTimeout(() => resolve(this), 1000)); | |
} | |
} | |
(async () => { | |
const test = await new Item(); | |
console.log(test); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment