Upgrade to Pro — share decks privately, control downloads, hide ads and more …

About tc39/ecma262

Avatar for HIRAKI Satoru HIRAKI Satoru
December 08, 2015

About tc39/ecma262

Avatar for HIRAKI Satoru

HIRAKI Satoru

December 08, 2015
Tweet

More Decks by HIRAKI Satoru

Other Decks in Technology

Transcript

  1. Trailing commas in function parameter lists and calls JavaScriptॻ͘ͷʹෆศͩΖ!ͱࢥͬͨͷ͔෼͔ Γ·ͤΜ͕ɺ͔֬ʹ͜͏ॻ͚ΔͱศརͰ͸͋Δ

    ͔…ͱ͍͏࢓༷ɻStage3ɻ ཁ͸ԾҾ਺ͷ࠷ޙʹέπΧϯϚೖΕͯ΋ಈ͘Α͏ ʹ͠Α͏ͥ!ͱ͍͏΋ͷɻ
  2. Trailing commas in function parameter lists and calls function hoge(

    foo, bar, baz, ) {/*...*/} hoge( 'foo', 'bar', 'baz', ) {/*...*/}
  3. Encapsulated private state for objects class DataObj { private #data1;

    constructor(d) { #data1 = d; } sameData(another) { return #data1 === another.#data1 } }; let obj1= new DataObj(1); let obj2 = new DataObj(2); console.log(obj1.sameData(obj2)); // false consloe.log(obj1.sameData(new DataObj(1))); // true
  4. 64-Bit Integer Operations ·Μ·ൈਮɻ // return the high 32 bit

    part of the 64 bit addition of (hi0, lo0) and (hi1, lo1) Math.iaddh(lo0, hi0, lo1, hi1) // return the high 32 bit part of the 64 bit subtraction of (hi0, lo0) and (hi1, lo1) Math.isubh(lo0, hi0, lo1, hi1) // return the high 32 bit part of the signed 64 bit product of the 32 bit numbers a and b Math.imulh(a, b) // return the high 32 bit part of the unsigned 64 bit product of the 32 bit numbers a and b Math.umulh(a, b)