babel/lib/6to5/transformation/templates/temporal-assert-defined.js
2015-02-08 01:27:22 +11:00

7 lines
153 B
JavaScript

(function (val, name, undef) {
if (val === undef) {
throw new ReferenceError(name + " is not defined - temporal dead zone");
}
return true;
})