node/test/message/throw_error_with_getter_thr...

11 lines
215 B
JavaScript

'use strict';
require('../common');
throw { // eslint-disable-line no-throw-literal
get stack() {
throw new Error('weird throw but ok');
},
get name() {
throw new Error('weird throw but ok');
},
};