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

6 lines
187 B
JavaScript

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