Top "Traceur" questions

Traceur is a JavaScript next-to-JavaScript-of-today compiler that allows you to use features from the future today.

How to implement private method in ES6 class with Traceur

I use Traceur Compiler to have advantage with ES6 features now. I want to implement this stuff from ES5: function …

javascript class ecmascript-5 ecmascript-6 traceur
Get the class name of ES6 class instance

Are there any 'harmonious' ways to get the class name from ES6 class instance? Other than someClassInstance.constructor.name Currently …

javascript ecmascript-6 traceur
Nested ES6 classes?

It seems possible to nest a class in a constructor which can then be instantiated from anywhere within the class, …

javascript ecmascript-6 traceur
How to mock dependencies for unit tests with ES6 Modules

I'm trying to fiddle with Ecmascript 6 modules using webpack + traceur to transpile to ES5 CommonJS, but I'm having trouble successfully …

javascript unit-testing ecmascript-6 traceur jestjs
Override a setter, and the getter must also be overridden

class AbstractClass { constructor() { } set property(value) { this.property_ = value; } get property() { return this.property_; } } class Subclass extends AbstractClass { constructor() { super(); } …

javascript class ecmascript-6 getter-setter traceur
ECMAScript 6: what is WeakSet for?

The WeakSet is supposed to store elements by weak reference. That is, if an object is not referenced by anything …

javascript ecmascript-6 traceur
Extending Array with ES6 classes

I have heard that ES6 now finally permits subclassing Array. Here's an example given by class Stack extends Array { constructor() { …

ecmascript-6 traceur
Should I use Traceur instead of Typescript to target ES5 but be ready for ES6

I'm working on a large code base that could benefit from Typescript, but since eventually the world will be moving …

typescript traceur
Uncaught (in promise) TypeError: $ is not a function

I am trying to display a button with ripple using material design lite but getting the following error: app.js:3 …

javascript jquery ecmascript-6 material-design traceur