summaryrefslogtreecommitdiffstats
path: root/node_modules/babel-runtime/helpers/temporalRef.js
blob: 49b8b247c141ac72f3f707854b1fed8dc63338e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

exports.__esModule = true;

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