Sha256: 7a646b73e37d0d206ff46b140822a85d245cce1221a6d75148f203b7a9c63083

Contents?: true

Size: 1.1 KB

Versions: 21

Compression:

Stored size: 1.1 KB

Contents

/**
 * 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 = (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.
var hadRuntime = g.regeneratorRuntime &&
  Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;

// Save the old regeneratorRuntime in case it needs to be restored later.
var oldRuntime = hadRuntime && g.regeneratorRuntime;

// Force reevalutation of runtime.js.
g.regeneratorRuntime = undefined;

module.exports = require("./runtime");

if (hadRuntime) {
  // Restore the original runtime.
  g.regeneratorRuntime = oldRuntime;
} else {
  // Remove the global property added by runtime.js.
  try {
    delete g.regeneratorRuntime;
  } catch(e) {
    g.regeneratorRuntime = undefined;
  }
}

Version data entries

21 entries across 21 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.44 node_modules/regenerator-runtime/runtime-module.js
immosquare-cleaner-0.1.43 node_modules/regenerator-runtime/runtime-module.js
immosquare-cleaner-0.1.42 node_modules/regenerator-runtime/runtime-module.js
immosquare-cleaner-0.1.41 node_modules/regenerator-runtime/runtime-module.js
immosquare-cleaner-0.1.40 node_modules/regenerator-runtime/runtime-module.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
ilog-0.4.1 node_modules/regenerator-runtime/runtime-module.js
ilog-0.4.0 node_modules/regenerator-runtime/runtime-module.js
ilog-0.3.3 node_modules/regenerator-runtime/runtime-module.js
optimacms-0.4.3 spec/dummy/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
optimacms-0.4.2 spec/dummy/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/regenerator-runtime/runtime-module.js
lux_assets-0.2.11 ./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
lux_assets-0.2.9 ./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
lux_assets-0.2.4 ./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
lux_assets-0.2.2 ./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
lux_assets-0.2.1 ./node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
locomotivecms-3.4.0 app/javascript/node_modules/regenerator-runtime/runtime-module.js
cortex-0.1.3 spec/dummy/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime-module.js
condenser-0.0.4 lib/condenser/processors/node_modules/regenerator-runtime/runtime-module.js