node/test/message/throw_non_error.js

11 lines
182 B
JavaScript

'use strict';
var common = require('../common');
var assert = require('assert');
console.error('before');
// custom error throwing
throw ({ foo: 'bar' });
console.error('after');