Which internal slot does the specification use to track whether a Promise has been resolved, and what prevents resolving a Promise twice?

JavaScript Professional Hard

JavaScript Professional — Hard

Which internal slot does the specification use to track whether a Promise has been resolved, and what prevents resolving a Promise twice?

Key points

  • [[AlreadyResolved]] prevents Promise from being resolved twice
  • [[PromiseState]] does not exist in the specification
  • [[ResolvingFunctions]] does not track resolution state
  • [[PromiseLocked]] does not block double resolution

Ready to go further?

Related questions