* Add throw expressions Stage 2 proposal: https://github.com/tc39/proposal-throw-expressions * Update babylon * Add to stage 2
6 lines
85 B
JavaScript
6 lines
85 B
JavaScript
function* test() {
|
|
(function (e) {
|
|
throw e;
|
|
})(new Error((yield 'test')));
|
|
}
|