summaryrefslogtreecommitdiff
path: root/test/message/throw_error_with_getter_throw.js
blob: a807ff3e2b65041f5927e04148941c4266cb1e04 (plain)
1
2
3
4
5
6
7
8
9
10
'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');
  },
};