mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
8fc2c3272a
* update ses * build - reference ses directly * deps - unify regenerator-runtime versions on 0.13.7 * patches - apply regenerator-runtime ses compat patch\nhttps://github.com/facebook/regenerator/pull/411 * patches - patch regenerator-runtime for latest ses fix * reduc patch, new lockdown severe override taming * updated redux patch * update redux patch for production * ignore lockdown in lint * deps - bump patch-package just in case * trailing comma * remove ses as dep * fix path for frozen promise * remove js extension in lockdown require * Revert "ignore lockdown in lint" This reverts commit 8cefdc94dd25d7781bb09eed8af36441397676da. * Revert "build - reference ses directly" This reverts commit 30371a377dcdd781c1bf9abe55e9c8ae34da26b5. * deps - update ses * Revert "fix path for frozen promise" This reverts commit 966e4c60921a25befe8ca8dea58313cc25852f72. Co-authored-by: kumavis <aaron@kumavis.me>
68 lines
2.4 KiB
Diff
68 lines
2.4 KiB
Diff
diff --git a/node_modules/regenerator-runtime/runtime.js b/node_modules/regenerator-runtime/runtime.js
|
|
index 547b8c6..c53a471 100644
|
|
--- a/node_modules/regenerator-runtime/runtime.js
|
|
+++ b/node_modules/regenerator-runtime/runtime.js
|
|
@@ -5,7 +5,7 @@
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
-var runtime = (function (exports) {
|
|
+ var runtime = (function (exports) {
|
|
"use strict";
|
|
|
|
var Op = Object.prototype;
|
|
@@ -86,9 +86,9 @@ var runtime = (function (exports) {
|
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
// don't natively support it.
|
|
var IteratorPrototype = {};
|
|
- IteratorPrototype[iteratorSymbol] = function () {
|
|
+ define(IteratorPrototype, iteratorSymbol, function () {
|
|
return this;
|
|
- };
|
|
+ });
|
|
|
|
var getProto = Object.getPrototypeOf;
|
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
@@ -102,8 +102,9 @@ var runtime = (function (exports) {
|
|
|
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
- GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
- GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
+ define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
GeneratorFunction.displayName = define(
|
|
GeneratorFunctionPrototype,
|
|
toStringTagSymbol,
|
|
@@ -217,9 +218,9 @@ var runtime = (function (exports) {
|
|
}
|
|
|
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
- AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
return this;
|
|
- };
|
|
+ });
|
|
exports.AsyncIterator = AsyncIterator;
|
|
|
|
// Note that simple async functions are implemented on top of
|
|
@@ -412,13 +413,13 @@ var runtime = (function (exports) {
|
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
- Gp[iteratorSymbol] = function() {
|
|
+ define(Gp, iteratorSymbol, function() {
|
|
return this;
|
|
- };
|
|
+ });
|
|
|
|
- Gp.toString = function() {
|
|
+ define(Gp, "toString", function() {
|
|
return "[object Generator]";
|
|
- };
|
|
+ });
|
|
|
|
function pushTryEntry(locs) {
|
|
var entry = { tryLoc: locs[0] };
|