Questions tagged [ecmascript-harmony]

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

ECMAScript Harmony is the code name for proposals aiming to extend the current ECMA-262 specification and to form the new . It names the agreed design trajectory of post-ES5 editions. It will include syntactic extensions, but the changes will be more modest than ECMAScript 4 in both semantic and syntactic innovation.

Packages, namespaces, and early binding from ECMAScript 4 are no longer included for planned releases, and don't live under the roof of Harmony.

References

  1. ECMAScript - Wikipedia
  2. ECMAScriptHarmony - ECMAScript.org
239 questions
0
votes
1 answer

Using Nodejs unstable alongside stable to access ES6/Harmony

I wanted to start practicing ES6, and plan to do that using Node.js (--harmony) in the first instance. I have the stable 0.10 branch on my Ubuntu computer already and want to run the unstable version just for testing new coding styles. Is there a…
Simon H
  • 17,952
  • 10
  • 57
  • 101
0
votes
1 answer

ES6 Classes with Inheritance issue and Traceur Not Showing Compiled Code

I am experimenting with ES6. In particular, classes and inheritance. In class Apple, it extends Polygon. I want to extend Polygon's method sayName() and have it go to console.log. When I run it through traceur, I get undefined for…
dman
  • 10,780
  • 16
  • 86
  • 174
0
votes
1 answer

How can you tell what generator an iterator is for in ES6?

In the following: function *bar() { console.log( yield 1 ); console.log( yield 2 ); console.log( "done" ); } var it = bar(); it.next(); it2 = fromTheTop(it); function fromTheTop(it){ // ??? } How could you write the fromTheTop…
Dean Radcliffe
  • 2,154
  • 20
  • 28
0
votes
1 answer

"TypeError: object is not a function"

I don't know where this is coming from, version 4.0 of CO is installed and 0.11.14 version of Node. Very simple code which worked on 3.1 (just noticed the previous version of co is different) "use strict" const co = require('co') const main =…
akaphenom
  • 6,191
  • 9
  • 55
  • 99
0
votes
1 answer

Accessing JavaScript in-memory objects

Is it possible to access JS in-memory objects from within the code? Are there any internal memory inspectors available? Can I list the objects with a given prototype (or type) from code? // EXAMPLE function Kitten(name) { this.name = name; } var…
Gábor Imre
  • 4,754
  • 2
  • 28
  • 44
0
votes
2 answers

How to initialize a koa node.js app application on IISNode (Azure WebSites)

We are currently moving a self-hosted koa app to IISNode on Azure WebSites.. In self-hosting, we initiallize the application by calling node --harmony ./bin/application Requests then go to ./index.js. However we could not find how to setup…
JoaoCC
  • 547
  • 4
  • 12
0
votes
1 answer

Why does returning this ECMAScript Harmony arrow function expression produce unexpected behavior?

I've been playing with the new ECMAScript 6 features and this question has to do with arrow functions. The following code is a simple functional composition method assigned to the Function object's prototype. It works perfectly well using a simple…
Siddharth
  • 1,086
  • 3
  • 13
  • 28
0
votes
1 answer

ES6 export default AssignmentExpression

export default var foo = {...} It's AssignmentExpression and valid es6 syntax? JSHint says it Expected an identifier and instead saw 'var'. On last spec I not found any relation with VariableStatement and AssignmentExpression.
foror
  • 61
  • 1
  • 5
0
votes
1 answer

Object.observe - Multiple observers support?

Can someone tell me if Object.observe() will (once implemented) allow to register multiple observers via multiple calls? Or only the last one will stay? For example if I do: Object.observe(obj, myFirstFunction); Object.observe(obj,…
flawyte
  • 7,678
  • 4
  • 44
  • 63
0
votes
1 answer

What ECMAScript 6/7 standards have been implemented in Firefox and not in chrome?

I'm sorry if this has been asked before. Some ES6/7 standards are implemented in Firefox beta versions alone and not in Chrome, and vice versa. Can anyone please list which browsers support what? Is there any single browser which implemented most…
0
votes
0 answers

Generators in JavaScript 1.7, what difference an asterisk (*) would make

I am exploring new features introduced in Javascript 1.7. In generators, I came across the following code and could not understand the difference an asterisk (*) would make to the function declaration. Link :…
Ashwin Aggarwal
  • 589
  • 7
  • 20
0
votes
2 answers

How to ensure Traceur output is compatible with amd/commonjs

I want to run my ES6 though Traceur. However I would also like to use Webpack which can accept AMD modules or commonjs. I was wondering if traceur gone through any steps to be compatible (ES5 output maintains requires+defines etc) with these and…
Nikos
  • 6,553
  • 6
  • 43
  • 76
0
votes
1 answer

what is extends is equal to when desugarified, javascript harmony

Assuming I had an ecmascript 5 class function vehicle(){ this.hasWheels=true; } vehicle.prototype.getWheels=function(){return this.haswheels;}; but it was defined using the new ecmascript class syntax, would creating a "car" class that…
Jim Jones
  • 2,097
  • 5
  • 19
  • 41
0
votes
1 answer

Co.js app reports "TypeError: Cannot call method 'apply' of undefined"

When ever I try to run my Co.app I get TypeError: Cannot call method 'apply' of undefined at /home/ecarroll/code/chrome-okc-plugin/node_modules/thunkify/index.js:32:8 at /home/ecarroll/code/chrome-okc-plugin/test.js:12:17 at…
user157251
  • 64,489
  • 38
  • 208
  • 350
0
votes
2 answers

TypeScript compile .js

I want to use typescript in ES6-compatible mode, as a partial replacement for ES6 classes, because it is quite convenient and clear compiler, comparing to traceur/sweet.js macros. How can I compile files with .js extension? tsc src/util.js gives…
dy_
  • 4,795
  • 4
  • 21
  • 28
1 2 3
15
16