node/test/message/throw_non_error.js

6 lines
86 B
JavaScript

'use strict';
require('../common');
// custom error throwing
throw ({ foo: 'bar' });