Skip to content

Commit d35778e

Browse files
committed
chore: update build files
1 parent 4b2ebd7 commit d35778e

10 files changed

Lines changed: 30 additions & 14 deletions

‎badges/coverage-badge.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎badges/tests-badge.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎dist/index-browser-esm.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,15 +1227,19 @@ jsep.addLiteral('undefined', undefined);
12271227
const BLOCKED_PROTO_PROPERTIES = new Set(['constructor', '__proto__', '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__']);
12281228

12291229
// Every function-constructor variant, along with the invocation helpers which
1230-
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`
1230+
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`,
1231+
// plus whichever BLOCKED_PROTO_PROPERTIES names resolve to an own method on
1232+
// Object.prototype (e.g. `__defineGetter__`) - an own-property access on a
1233+
// shared prototype (`@.prototype.__defineGetter__`) bypasses the
1234+
// inherited-only name check below, so those methods need blocking by value.
12311235
/** @type {WeakSet<object>} */
12321236
const BLOCKED_FUNCTIONS = new WeakSet([Function,
12331237
// eslint-disable-next-line no-empty-function -- Only need the constructor
12341238
function* () {}.constructor,
12351239
// eslint-disable-next-line no-empty-function -- Only need the constructor
12361240
async function () {}.constructor,
12371241
// eslint-disable-next-line no-empty-function -- Only need the constructor
1238-
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct]);
1242+
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct, ...[...BLOCKED_PROTO_PROPERTIES].map(name => Reflect.get(Object.prototype, name)).filter(value => typeof value === 'function')]);
12391243

12401244
/**
12411245
* @param {UnknownResult} value

‎dist/index-browser-esm.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index-browser-esm.min.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index-browser-umd.cjs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,15 +1233,19 @@
12331233
const BLOCKED_PROTO_PROPERTIES = new Set(['constructor', '__proto__', '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__']);
12341234

12351235
// Every function-constructor variant, along with the invocation helpers which
1236-
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`
1236+
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`,
1237+
// plus whichever BLOCKED_PROTO_PROPERTIES names resolve to an own method on
1238+
// Object.prototype (e.g. `__defineGetter__`) - an own-property access on a
1239+
// shared prototype (`@.prototype.__defineGetter__`) bypasses the
1240+
// inherited-only name check below, so those methods need blocking by value.
12371241
/** @type {WeakSet<object>} */
12381242
const BLOCKED_FUNCTIONS = new WeakSet([Function,
12391243
// eslint-disable-next-line no-empty-function -- Only need the constructor
12401244
function* () {}.constructor,
12411245
// eslint-disable-next-line no-empty-function -- Only need the constructor
12421246
async function () {}.constructor,
12431247
// eslint-disable-next-line no-empty-function -- Only need the constructor
1244-
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct]);
1248+
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct, ...[...BLOCKED_PROTO_PROPERTIES].map(name => Reflect.get(Object.prototype, name)).filter(value => typeof value === 'function')]);
12451249

12461250
/**
12471251
* @param {UnknownResult} value

‎dist/index-browser-umd.min.cjs‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎dist/index-browser-umd.min.cjs.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index-node-cjs.cjs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,15 +1231,19 @@ jsep.addLiteral('undefined', undefined);
12311231
const BLOCKED_PROTO_PROPERTIES = new Set(['constructor', '__proto__', '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__']);
12321232

12331233
// Every function-constructor variant, along with the invocation helpers which
1234-
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`
1234+
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`,
1235+
// plus whichever BLOCKED_PROTO_PROPERTIES names resolve to an own method on
1236+
// Object.prototype (e.g. `__defineGetter__`) - an own-property access on a
1237+
// shared prototype (`@.prototype.__defineGetter__`) bypasses the
1238+
// inherited-only name check below, so those methods need blocking by value.
12351239
/** @type {WeakSet<object>} */
12361240
const BLOCKED_FUNCTIONS = new WeakSet([Function,
12371241
// eslint-disable-next-line no-empty-function -- Only need the constructor
12381242
function* () {}.constructor,
12391243
// eslint-disable-next-line no-empty-function -- Only need the constructor
12401244
async function () {}.constructor,
12411245
// eslint-disable-next-line no-empty-function -- Only need the constructor
1242-
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct]);
1246+
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct, ...[...BLOCKED_PROTO_PROPERTIES].map(name => Reflect.get(Object.prototype, name)).filter(value => typeof value === 'function')]);
12431247

12441248
/**
12451249
* @param {UnknownResult} value

‎dist/index-node-esm.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,15 +1229,19 @@ jsep.addLiteral('undefined', undefined);
12291229
const BLOCKED_PROTO_PROPERTIES = new Set(['constructor', '__proto__', '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__']);
12301230

12311231
// Every function-constructor variant, along with the invocation helpers which
1232-
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`
1232+
// could otherwise reach them indirectly, e.g., `Function.call(0, 'code')()`,
1233+
// plus whichever BLOCKED_PROTO_PROPERTIES names resolve to an own method on
1234+
// Object.prototype (e.g. `__defineGetter__`) - an own-property access on a
1235+
// shared prototype (`@.prototype.__defineGetter__`) bypasses the
1236+
// inherited-only name check below, so those methods need blocking by value.
12331237
/** @type {WeakSet<object>} */
12341238
const BLOCKED_FUNCTIONS = new WeakSet([Function,
12351239
// eslint-disable-next-line no-empty-function -- Only need the constructor
12361240
function* () {}.constructor,
12371241
// eslint-disable-next-line no-empty-function -- Only need the constructor
12381242
async function () {}.constructor,
12391243
// eslint-disable-next-line no-empty-function -- Only need the constructor
1240-
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct]);
1244+
async function* () {}.constructor, Function.prototype.call, Function.prototype.apply, Function.prototype.bind, Reflect.apply, Reflect.construct, ...[...BLOCKED_PROTO_PROPERTIES].map(name => Reflect.get(Object.prototype, name)).filter(value => typeof value === 'function')]);
12411245

12421246
/**
12431247
* @param {UnknownResult} value

0 commit comments

Comments
 (0)