UPDATE: Recently a brilliant article from Mozilla came up. Read it if you're curious.   As you may know they are planning to include new Symbol primitive type in ECMAScript 6 (not to mention some other crazy stuff). I always thought that the...
The problem is?  [email protected]:~$ node --harmony test.js  /home/longhao33/test.js:1 (function (exports, require, module, __filename, __dirname) { let str = 'es666666666666';                                                               ^^^...
Can someone explain to me: why are generator functions in ES6 marked by asterisk symbol?   For example, instead of:  function *someGenerator() {     yield 1;     yield 2;     yield 3; }   we could write:     function someGenerator() {     yield 1;...
I want to cache large objects in JS. These objects are retrieved by key, and it makes sense to cache them. But they won't fit in memory all at once, so I want them to be garbage collected if needed - the GC obviously knows better.  It is pretty t...
This is a legitimate question if you really know the answer or can provide some information.  Firefox and Chrome are continually working to include many of the features in ES Harmony...  My question is really 2 parts:   Does anyone know when ES6 wil...
I want to use the now "Stage-3" proposal import(). If I lint my code with ESLint it's complaining about:  Parsing error: 'import' and 'export' may only appear at the top level   Which is correct for the static form of impo...
I'm really enjoying ES6 generators. Is there a way I can detect generator support in browsers? I know generators might not be in a lot of browsers (or possible no browsers at all) at the moment, but that's OK for my purposes.   I tried:  try...
I have a problem where I'm generating many values and need to make sure I only work with unique ones. Since I'm using node js, with the --harmony flag, and have access to harmony collections, I decided that a Set may be an option.  What I'...
I recently came across this great post by Dr. Axel Rauschmayer:  http://www.2ality.com/2015/02/es6-classes-final.html  The following snippet roughly describes how ECMAScript 6 prototype chains work from an ECMAScript 5 point of view (section 4.2 of t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.