Private Names and Methods

Herby Vojčík herby at mailbox.sk
Fri Apr 6 12:34:14 PDT 2012


> let obj = { a:2, b:4, prop("c", 6), counter() };
> class Foo {
> constructor(x) { this.{ prop("x", x) } }
> counter()
> }

   let obj = { a:2, b:4, prop("c", 6), counter() };
   class Foo {
     constructor(x) { this.{ prop("x", x) } }
     counter();
   }

   semicolon missed



More information about the es-discuss mailing list