Skip to content

Instantly share code, notes, and snippets.

@sonthonaxrk
Last active August 29, 2015 14:19
Show Gist options
  • Save sonthonaxrk/673755b633ef0d38ba8f to your computer and use it in GitHub Desktop.
Save sonthonaxrk/673755b633ef0d38ba8f to your computer and use it in GitHub Desktop.
class Model {
constructor(string) {
this.id = 20;
this.name = string;
}
}
module.exports = Model;
(django-dropoff)Rollos-Mac-Pro:backbone-playground Rollo$ iojs --use_strict --harmony_classes ./node_modules/.bin/mocha
/Users/Rollo/Developer/backbone-playground/src/lib/Model.js:1
(function (exports, require, module, __filename, __dirname) { class Model {
^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:393:25)
at Object.Module._extensions..js (module.js:428:10)
at Module.load (module.js:335:32)
at Function.Module._load (module.js:290:12)
at Module.require (module.js:345:17)
at require (module.js:364:17)
at Object.<anonymous> (/Users/Rollo/Developer/backbone-playground/test/test.js:3:13)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:428:10)
at Module.load (module.js:335:32)
at Function.Module._load (module.js:290:12)
at Module.require (module.js:345:17)
at require (module.js:364:17)
at /Users/Rollo/Developer/backbone-playground/node_modules/mocha/lib/mocha.js:192:27
at Array.forEach (native)
at Mocha.loadFiles (/Users/Rollo/Developer/backbone-playground/node_modules/mocha/lib/mocha.js:189:14)
at Mocha.run (/Users/Rollo/Developer/backbone-playground/node_modules/mocha/lib/mocha.js:422:31)
at Object.<anonymous> (/Users/Rollo/Developer/backbone-playground/node_modules/mocha/bin/_mocha:398:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:428:10)
at Module.load (module.js:335:32)
at Function.Module._load (module.js:290:12)
at Function.Module.runMain (module.js:451:10)
at startup (node.js:124:18)
at node.js:882:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment