Top "Ecmascript-harmony" questions

ECMAScript Harmony is the code name for proposals aiming to extend the current ECMA-262 specification.

Methods in ES6 objects: using arrow functions

In ES6, both of these are legal: var chopper = { owner: 'Zed', getOwner: function() { return this.owner; } }; and, as shorthand: var …

javascript ecmascript-6 ecmascript-harmony
JavaScript double colon (bind operator)

As you know, there is a proposal for a shortcut for .bind() function, so you can write: ::this.handleStuff and …

javascript ecmascript-harmony ecmascript-next
What's the difference between ES6 Map and WeakMap?

Looking this and this MDN pages it seems like the only difference between Maps and WeakMaps is a missing "size" …

javascript ecmascript-6 ecmascript-harmony weakmap
When should I use let and var?

EDIT: Please read the question! I already know the difference. This is not a duplicate. Obviously, right now I should …

javascript variables ecmascript-harmony ecmascript-6
How to make an iterator out of an ES6 class

How would I make an iterator out of an ES6 class in the same manner as JS1.7 SomeClass.prototype.__iterator__ = …

javascript ecmascript-6 ecmascript-harmony
Javascript optional type hinting

When a programming language is statically typed, the compiler can be more precise about memory allocation and thus be generally …

javascript performance variables ecmascript-harmony ecmascript-4
node.js / ES6 / class creation : SyntaxError: Unexpected reserved word

I try to create a class on my node.js / express app. It works in basic js / prototype mode such …

javascript node.js express ecmascript-6 ecmascript-harmony
ECMAScript:Harmony / ES6 to JavaScript compiler

After reading Peter's article on JavaScript I noticed Brendan Eich stated that one the goals for Harmony is to be …

javascript compiler-construction ecmascript-harmony
SyntaxError: Unexpected Identifier (Generators in ES6)

I came up with this simple experiment after reading the documentation on generators from MDN: var nodes = { type: 'root', value: [ { …

javascript node.js generator yield ecmascript-harmony
ES5 Object.assign equivalent

I wanted to do something which is very straight-forward using Object.assign. var firstObj = {name : "Saba H.", rollNo : 1}; var secondObj = {…

javascript object ecmascript-5 ecmascript-harmony