mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
External Libraries: Update the regenerator-runtime
package to version 0.13.9
.
Props hareesh-pillai, sourovroy, hellofromTonya. Fixes #54027. Built from https://develop.svn.wordpress.org/trunk@52162 git-svn-id: http://core.svn.wordpress.org/trunk@51754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2d0fb2040
commit
230fa090e8
@ -86,9 +86,9 @@ var runtime = (function (exports) {
|
|||||||
// This is a polyfill for %IteratorPrototype% for environments that
|
// This is a polyfill for %IteratorPrototype% for environments that
|
||||||
// don't natively support it.
|
// don't natively support it.
|
||||||
var IteratorPrototype = {};
|
var IteratorPrototype = {};
|
||||||
IteratorPrototype[iteratorSymbol] = function () {
|
define(IteratorPrototype, iteratorSymbol, function () {
|
||||||
return this;
|
return this;
|
||||||
};
|
});
|
||||||
|
|
||||||
var getProto = Object.getPrototypeOf;
|
var getProto = Object.getPrototypeOf;
|
||||||
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
||||||
@ -102,8 +102,9 @@ var runtime = (function (exports) {
|
|||||||
|
|
||||||
var Gp = GeneratorFunctionPrototype.prototype =
|
var Gp = GeneratorFunctionPrototype.prototype =
|
||||||
Generator.prototype = Object.create(IteratorPrototype);
|
Generator.prototype = Object.create(IteratorPrototype);
|
||||||
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
||||||
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
define(Gp, "constructor", GeneratorFunctionPrototype);
|
||||||
|
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
||||||
GeneratorFunction.displayName = define(
|
GeneratorFunction.displayName = define(
|
||||||
GeneratorFunctionPrototype,
|
GeneratorFunctionPrototype,
|
||||||
toStringTagSymbol,
|
toStringTagSymbol,
|
||||||
@ -217,9 +218,9 @@ var runtime = (function (exports) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defineIteratorMethods(AsyncIterator.prototype);
|
defineIteratorMethods(AsyncIterator.prototype);
|
||||||
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
||||||
return this;
|
return this;
|
||||||
};
|
});
|
||||||
exports.AsyncIterator = AsyncIterator;
|
exports.AsyncIterator = AsyncIterator;
|
||||||
|
|
||||||
// Note that simple async functions are implemented on top of
|
// 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
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
||||||
// object to not be returned from this call. This ensures that doesn't happen.
|
// 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.
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
||||||
Gp[iteratorSymbol] = function() {
|
define(Gp, iteratorSymbol, function() {
|
||||||
return this;
|
return this;
|
||||||
};
|
});
|
||||||
|
|
||||||
Gp.toString = function() {
|
define(Gp, "toString", function() {
|
||||||
return "[object Generator]";
|
return "[object Generator]";
|
||||||
};
|
});
|
||||||
|
|
||||||
function pushTryEntry(locs) {
|
function pushTryEntry(locs) {
|
||||||
var entry = { tryLoc: locs[0] };
|
var entry = { tryLoc: locs[0] };
|
||||||
@ -737,12 +738,17 @@ try {
|
|||||||
} catch (accidentalStrictMode) {
|
} catch (accidentalStrictMode) {
|
||||||
// This module should not be running in strict mode, so the above
|
// This module should not be running in strict mode, so the above
|
||||||
// assignment should always work unless something is misconfigured. Just
|
// assignment should always work unless something is misconfigured. Just
|
||||||
// in case runtime.js accidentally runs in strict mode, we can escape
|
// in case runtime.js accidentally runs in strict mode, in modern engines
|
||||||
|
// we can explicitly access globalThis. In older engines we can escape
|
||||||
// strict mode using a global Function call. This could conceivably fail
|
// strict mode using a global Function call. This could conceivably fail
|
||||||
// if a Content Security Policy forbids using Function, but in that case
|
// if a Content Security Policy forbids using Function, but in that case
|
||||||
// the proper solution is to fix the accidental strict mode problem. If
|
// the proper solution is to fix the accidental strict mode problem. If
|
||||||
// you've misconfigured your bundler to force strict mode and applied a
|
// you've misconfigured your bundler to force strict mode and applied a
|
||||||
// CSP to forbid Function, and you're not willing to fix either of those
|
// CSP to forbid Function, and you're not willing to fix either of those
|
||||||
// problems, please detail your unique predicament in a GitHub issue.
|
// problems, please detail your unique predicament in a GitHub issue.
|
||||||
Function("r", "regeneratorRuntime = r")(runtime);
|
if (typeof globalThis === "object") {
|
||||||
|
globalThis.regeneratorRuntime = runtime;
|
||||||
|
} else {
|
||||||
|
Function("r", "regeneratorRuntime = r")(runtime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -105,7 +105,7 @@ function wp_default_packages_vendor( $scripts ) {
|
|||||||
$vendor_scripts_versions = array(
|
$vendor_scripts_versions = array(
|
||||||
'react' => '17.0.1',
|
'react' => '17.0.1',
|
||||||
'react-dom' => '17.0.1',
|
'react-dom' => '17.0.1',
|
||||||
'regenerator-runtime' => '0.13.7',
|
'regenerator-runtime' => '0.13.9',
|
||||||
'moment' => '2.29.1',
|
'moment' => '2.29.1',
|
||||||
'lodash' => '4.17.19',
|
'lodash' => '4.17.19',
|
||||||
'wp-polyfill-fetch' => '3.6.2',
|
'wp-polyfill-fetch' => '3.6.2',
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-52161';
|
$wp_version = '5.9-alpha-52162';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user