archives

« Bugzilla Issues Index

#2586 — 15.2.4.3 No need to return a promise


The return promise value of ProceedToLocate is never used by its callers.


it could be an abrupt completion.

We need to work out the exception paths and make sure that they get handled or reported appropriately and not just dropped.


Surely the presence or not of the `return` statement doesn't affect the execution though?

ProceedToLocate itself takes the value from ProceedToFetch, takes the value from ProceedToTranslate, which is undefined.

The only logic in these functions is promise construction.

So in terms of the exception paths, there is no exception handling at this level to worry about, unless the global Promise becomes undefined, or gets manipulated so that `.then` stops working?


concerns old module spec.