node/test/message/throw_non_error.js

10 lines
168 B
JavaScript
Raw Normal View History

var common = require('../common');
var assert = require('assert');
console.error('before');
// custom error throwing
2012-02-19 07:01:35 +08:00
throw ({ foo: 'bar' });
console.error('after');