aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-runtime/helpers/temporalRef.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-runtime/helpers/temporalRef.js')
-rw-r--r--node_modules/babel-runtime/helpers/temporalRef.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/babel-runtime/helpers/temporalRef.js b/node_modules/babel-runtime/helpers/temporalRef.js
new file mode 100644
index 000000000..49b8b247c
--- /dev/null
+++ b/node_modules/babel-runtime/helpers/temporalRef.js
@@ -0,0 +1,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;
+ }
+}; \ No newline at end of file