Files
test-repo/tests/format/js/babel-plugins/throw-expressions.js
T

6 lines
184 B
JavaScript

// https://babeljs.io/docs/babel-plugin-proposal-throw-expressions
function test(param = throw new Error('required!')) {
const test = param === true || throw new Error('Falsy!');
}