News for hackers. Stuff that matters.
Re:A one-line package broke `npm create-react-app` by GlitchMr on Saturday April 25, 2020 @04:34PM (#22981212)
This is a promise as far the language is concerned (and `is-promise` package uses the same definition as the language) - it's sufficient for an value to be an object and to have a `then` property that is callable. For instance, in the following example, the `then` method is being called.

    (async () => ({
        then() {
            console.log("Called")
        }
    }))()

There are no comments on this comment yet.