this is more clean

This commit is contained in:
Nuckyz 2024-05-24 18:46:36 -03:00
parent daa1a35fc3
commit 1e55ae5327
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -107,7 +107,7 @@ Object.defineProperty(Function.prototype, "m", {
// setImmediate to clear this property setter if this is not the main Webpack // setImmediate to clear this property setter if this is not the main Webpack
// If this is the main Webpack, wreq.m will always be set before the timeout runs // If this is the main Webpack, wreq.m will always be set before the timeout runs
const setterTimeout = setTimeout(() => delete (this as Partial<WebpackRequire>).p, 0); const setterTimeout = setTimeout(() => Reflect.deleteProperty(this, "p"), 0);
Object.defineProperty(this, "p", { Object.defineProperty(this, "p", {
configurable: true, configurable: true,