babel/lib/6to5/transformation/templates/object-destructuring-empty.js

4 lines
94 B
JavaScript

(function (obj) {
if (obj == null) throw new TypeError("Cannot destructure undefined");
});