Promise.prototype.finally was introduced in ES2018, not E2019
yg-i opened this issue · comments
yg-i commented
Please type "I already searched for this issue":
I already searched for this issue
Edition: (1st or 2nd)
2nd
Book Title:
Getting Started
Chapter:
1
Section Title:
Filling the Gaps
Problem:
Re: the sentences
This code uses an ES2019 feature, the
finally(..)
method on the promise prototype. If this code were used in a pre-ES2019 environment, thefinally(..)
method would not exist, and an error would occur.
it seems that Promise.prototype.finally() was introduced in ES2018, not ES2019. See e.g.
- ES2018 spec: https://262.ecma-international.org/9.0/#sec-promise.prototype.finally
- contemporaneous references: 1 2
Kyle Simpson commented
Eh. Seems irrelevant.