temporalRef.js 224 B

1234567891011
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (val, name, undef) {
  4. if (val === undef) {
  5. throw new ReferenceError(name + " is not defined - temporal dead zone");
  6. } else {
  7. return val;
  8. }
  9. };