iwmlib/lib/3rdparty/systemjs/babel-helpers/temporalRef.js

7 lines
180 B
JavaScript
Raw Permalink Normal View History

2019-04-05 10:09:27 +02:00
export default (function (val, name, undef) {
if (val === undef) {
throw new ReferenceError(name + " is not defined - temporal dead zone");
} else {
return val;
}
});