From 85ae04ed835439c397de091b4b34554645443049 Mon Sep 17 00:00:00 2001 From: kumavis Date: Mon, 22 Mar 2021 20:59:22 +0800 Subject: [PATCH] patches - apply regenerator-runtime ses compat patch\n/~https://github.com/facebook/regenerator/pull/411 --- patches/regenerator-runtime+0.13.7.patch | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 patches/regenerator-runtime+0.13.7.patch diff --git a/patches/regenerator-runtime+0.13.7.patch b/patches/regenerator-runtime+0.13.7.patch new file mode 100644 index 000000000000..500823136bf3 --- /dev/null +++ b/patches/regenerator-runtime+0.13.7.patch @@ -0,0 +1,37 @@ +diff --git a/node_modules/regenerator-runtime/runtime.js b/node_modules/regenerator-runtime/runtime.js +index 547b8c6..529c6a1 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; +@@ -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, +@@ -416,9 +417,9 @@ var runtime = (function (exports) { + return this; + }; + +- Gp.toString = function() { ++ define(Gp, 'toString', function() { + return "[object Generator]"; +- }; ++ }); + + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] };