temporalRef.js 180 B

1234567
  1. export default (function (val, name, undef) {
  2. if (val === undef) {
  3. throw new ReferenceError(name + " is not defined - temporal dead zone");
  4. } else {
  5. return val;
  6. }
  7. });