aboutsummaryrefslogtreecommitdiff
path: root/node_modules/regenerator-runtime/runtime-module.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/regenerator-runtime/runtime-module.js
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
upgrade dependencies
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.