Skip to content

Instantly share code, notes, and snippets.

@domharrington
Created February 17, 2015 09:51
Show Gist options
  • Save domharrington/378242a2ad7c9ed5b9ed to your computer and use it in GitHub Desktop.
Save domharrington/378242a2ad7c9ed5b9ed to your computer and use it in GitHub Desktop.
Node v0.10.36 and io.js v1.2.0 js error message differences
var assert = require('assert')
assert.throws(function () {
var a = {}
a.b()
}, /undefined is not a function/)
var assert = require('assert')
assert.throws(function () {
var a = {}
a.b()
}, /Object #<Object> has no method \'b\'/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment