archives

« Bugzilla Issues Index

#2478 — 25.4.1.5 NewPromiseCapability: Handle undefined return value in step 3


25.4.1.5 NewPromiseCapability:

CreateFromConstructor() returns `undefined` if the constructor object does not have a @@create function, NewPromiseCapability needs to handle this case after steps 3-4.


fixed in rev23 editor's draft

Added:
5. If Type(promise) is not Object, then throw a TypeError exception.


fixed in rev23 draft