-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECMAScript 2020の対応 #1145
Comments
https://www.ecma-international.org/news/index.html |
現実的な話としてはFirefoxも対応してないと使えない(試せない)ということがあるので、
|
まずは、どの項目から対応する(対応できる)かの一覧を作る。対応するべきものは別途Issueを作って対応する |
ES2020: |
Nullish coalescing OperatorNull合体演算子 - JavaScript | MDN https://jsprimer.net/basic/function-declaration/#function-default-parameters falsyの話題自体は Issue: #1178 |
Optional chainingOptional chaining - JavaScript | MDN https://jsprimer.net/basic/object/#confirm-property でまさにその事例があるので、ここで紹介する。 Issue: #1179 |
for-in mechanics
これが仕様で定義されるようになったので、 Issue: #1180 |
globalThis
これをまとめた概念としてglobalThis がES2020で追加されたことについてを追加する。 Issue: #1181 |
Promise.allSettled()ユースケースがちょっと出てこない Promise本では網羅的に対応するべきだけど、JS Primerだといらないかもしれない。 |
BigIntプリミティブ型と整数のところで紹介する。 Issue #445 |
|
import() と import.metaユースケースででてきてないので微妙かもしれない。 |
一応それぞれ対応予定のIssueを作りました /cc @lacolaco |
Dynamic Import も対応したいけど、これECMAScriptの章自体を書き換えないと行けない気がする。 |
この辺をちゃんと把握して進められるようにするため、新しく項目増やすときにチェックする項目がほしい感じ。 |
Features tagged “ES2020” · V8 |
ES2020は全て対応できた 🎉 あとはバージョンの更新とリリースノートを書く |
ECMAScript 2020のリリース候補がでたので、どうするか検討する。
この書籍の目的としては現実のユースケースを反映することであって、リファレンスになることが目的ではない。
そのため、仕様に入っても追加しないという判断もあるので、ここのProposalごとに決めていく必要がある。
Proposals
export * as ns from "mod";
の対応 #1177String.prototype.matchAll
ES2020: String.prototype.matchAll #1182 feat(string): String#matchAllに対応、RegExp#execをコラムに移動 #1250globalThis
ES2020: globalThis #1181非対応Promise.allSettled
import()
ユースケースが思いついたらimport.meta
BigInt(プリミティブの種類)、globalThis(thisの説明)、Nullish coalescing Operator(デフォルト引数)、 Optional chaining(undefined?まわり)あたりは必要になる気がする。
対応後
js-primer/book.json
Line 22 in 9342169
追記:
対応するべきものはIssueを個別に切ったので、やりたい人がいたらコメントしてください。
good first issue は簡単なIssueです。
The text was updated successfully, but these errors were encountered: