Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ECMAScript
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yuta Hiroto
November 21, 2016
Programming
710
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ECMAScript
https://atnd.org/events/82619
の発表資料
Yuta Hiroto
November 21, 2016
More Decks by Yuta Hiroto
See All by Yuta Hiroto
Node8.3.0について
abouthiroppy
1
3.2k
reflow/repaint
abouthiroppy
0
210
my tools
abouthiroppy
0
180
OSSを楽しむ話
abouthiroppy
0
200
React Nativeを触ってみた話
abouthiroppy
0
190
Other Decks in Programming
See All in Programming
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
630
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
420
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.4k
From 6 People Classroom Meetup to 100 People Regional Conference / FOSS4G Hiroshima 2026
furukawayasuto
0
100
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
0
410
typoなんかねぇよ
raspython3
0
660
FDEとは、何者なのか?
masapyon1212
0
140
自分的「カンファレンスの楽しみ方」
syumai
0
190
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
460
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
130
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
140
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
360
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
10k
Visualization
eitanlees
152
17k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
250
Six Lessons from altMBA
skipperchong
29
4.5k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
380
Embracing the Ebb and Flow
colly
88
5.2k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
260
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
660
Transcript
ECMAScript 2016/11/20 ALT
ࣗݾհ about_hiroppy abouthiroppy TEAMS
JavaScriptͷඪ४ ECMAScript Ecma International - ECMA-262 - ECMA-402 specifications
ecma-international.org /publications/standards/Standard
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition) developer.mozilla.org/ja/docs/Web/JavaScript/Language_Resources
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition) ࠓίί ES2015͔ΒຖϦϦʔε ͞ΕΔΑ͏ʹܾఆ͞Εͨ ࡦఆத
ECMA TC39 ECMAScriptͷඪ४ԽΛ ߦ͏ҕһձ ओཁͳϒϥβϕϯμʔ ͷදͳͲ͕ࢀՃ͠ ͍ٞͯ͠Δ
TC39 Process stage-0 stage-1 stage-2 stage-3 stage-4 Strawman Proposal
Draft Candidate Finished tc39.github.io/process-document
TC39 Process stage-1 stage-2 stage-3 stage-4 tc39.github.io/process-document stage-0 Strawman
ΞΠσΞ tc39/proposalsͷstage-0 PRΛग़͢ɻ TC39 championΛऔಘ͠ tc39/proposals/blob/master/CONTRIBUTING.md#proposals
TC39 Process stage-0 stage-2 stage-3 stage-4 tc39.github.io/process-document Proposal stage-1
Ճ͢ΔͨΊͷέʔε࡞ (polyfills / demos) જࡏత՝ͷಛఆ
TC39 Process stage-0 stage-1 stage-3 stage-4 tc39.github.io/process-document Draft stage-2
ECMAScriptඪ४Λ༻͠ ߏจͱηϚϯςΟοΫͷ ਖ਼֬ͳઆ໌Λ͢Δɻ
TC39 Process stage-0 stage-1 stage-2 stage-4 tc39.github.io/process-document stage-3 Candidate
࣮Ϣʔβ͔Βͷ ϑΟʔυόοΫΛٻΊΔɻ ͯ͢ͷηϚϯςΟοΫɺ ߏจɺٴͼAPI͕ܾఆ͞ΕΔɻ
TC39 Process stage-0 stage-1 stage-2 stage-3 tc39.github.io/process-document stage-4 Finished
ਖ਼ࣜͳECMAScriptඪ४ʹ ؚΊΔ४උ͕Ͱ͖͍ͯΔ͜ͱ Λࣔ͢ɻ test262Ͱ༻γφϦΦςετ͕ डɺϚʔδ͞ΕΔඞཁ͕͋Δɻ 2ͭҎ্ͷޓ࣮͕ඞཁɻ
stage-4ͷProposalਖ਼ࣜʹ ࣍ظECMAScriptͷ༷ͱͳΔ
Editions(only ECMA-262) • 1996/06 - ECMA-262 (ES 1) •
1998/08 - ECMA-262 (ES 2) • 1999/12 - ECMA-262 (ES 3) • 2009/12 - ECMA-262 (ES 5) • 2011/06 - ECMA-262 (ES 5.1) • 2015/06 - ECMA-262 2015 (ES 6) • 2016/06 - ECMA-262 2016 (ES 7) • 2017/?? - ECMAScript 2017 (8th Edition)
ES2016 • Array.prototype.includes • Exponentiation Operator const arr =
[1, 2, 3]; if (arr.includes(2)) { console.log('aru!'); } if (2**3 === 8) { console.log('**'); }
ES2017 • String.prototype.padStart String.prototype.padEnd • Object.values Object.entries • Object.getOwnPropertyDescriptors •
Trailing Commas in Function Param Lists • Async Functions
string padding 'a'.padStart(5); // " a" 'a'.padEnd(5); // "a
" 'a'.padStart(3, 'b'); // "bba" 'a'.padEnd(3, 'b'); // "abb" จࣈຒΊΛߦ͏ let num = 1; // `0${num}`.slice(-2); // 01 // ☺ num.toString().padStart(2, 0); // 01 tc39/proposal-string-pad-start-end
Object.values/Object.entries const obj = { name: 'hello', age: 24
}; Object.values(obj); // Array [ "hello", 24 ] Object.entries(ob); // Array [ [ "name", "hello" ], [ "age", 24 ] ] tc39/proposal-object-values-entries
Object. getOwnPropertyDescriptors ࢦఆͨ͠ΦϒδΣΫτͷ ͯ͢ͷPropertyDescriptors Λऔಘ͢Δ attributes - value -
writable - get - set - configurable - enumerable const obj = { name: 'hello', age: 24 }; Object.getOwnPropertyDescriptors(obj); // Object { name: Object, age: Object } /* Object { name: { configurable: true, enumerable: true, value: "hello", writable: true }, age: ... } */ tc39/proposal-object-getownpropertydescriptors
Trailing Commas in Function Param Lists ΧϯϚΛڐ༰͢Δ͜ͱʹΑΓ มߋ࣌ʹ࠷ޙඌͷϓϩύςΟ
ͷΞοϓσʔτ (ΧϯϚΛ͚Ճ͑Δ)Λ͙ function post( p1, p2, ) {} post( 'hoge', 'fuga', ); tc39/proposal-trailing-function-commas
Async Functions tc39/proposal-async-iteration import 'babel-polyfill'; (async () => {
const str = await update(); console.info(str); })().catch((err) => console.error(err)); function update() { return new Promise((resolve, reject) => { setTimeout(() => resolve('finished!!'), 100); }); } ඇಉظͳॲཧΛಉظత ʹهड़͢Δ͜ͱ͕Մೳ
JavaScript͜Ε͔Β ͲΜͲΜਐԽ͍͖ͯ͠·͢ʂ
Links • tc39/ecma262 • tc39/proposals • tc39/agendas • tc39/tc39-notes •
kangax.github.io/compat-table/es6/