aboutsummaryrefslogtreecommitdiff
path: root/node_modules/regenerator-runtime/runtime-module.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/regenerator-runtime/runtime-module.js')
-rw-r--r--node_modules/regenerator-runtime/runtime-module.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/node_modules/regenerator-runtime/runtime-module.js b/node_modules/regenerator-runtime/runtime-module.js
index 8e7e2e4c1..ed2843177 100644
--- a/node_modules/regenerator-runtime/runtime-module.js
+++ b/node_modules/regenerator-runtime/runtime-module.js
@@ -1,9 +1,13 @@
+/**
+ * Copyright (c) 2014-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
// This method of obtaining a reference to the global object needs to be
// kept identical to the way it is obtained in runtime.js
-var g =
- typeof global === "object" ? global :
- typeof window === "object" ? window :
- typeof self === "object" ? self : this;
+var g = (function() { return this })() || Function("return this")();
// Use `getOwnPropertyNames` because not all browsers support calling
// `hasOwnProperty` on the global `self` object in a worker. See #183.