mirror of https://github.com/webpack/webpack.git
remove unnecessary Object.assign
This commit is contained in:
parent
cff4bd04b3
commit
9dfcc27f6b
|
|
@ -30,7 +30,7 @@ class RelativeUrlRuntimeModule extends HelperRuntimeModule {
|
||||||
`values.toString = values.toJSON = ${runtimeTemplate.returningFunction(
|
`values.toString = values.toJSON = ${runtimeTemplate.returningFunction(
|
||||||
"url"
|
"url"
|
||||||
)};`,
|
)};`,
|
||||||
"for (var key in values) Object.defineProperty(this, key, Object.assign({ enumerable: true, configurable: true, value: values[key] }));"
|
"for (var key in values) Object.defineProperty(this, key, { enumerable: true, configurable: true, value: values[key] });"
|
||||||
]),
|
]),
|
||||||
"};",
|
"};",
|
||||||
`${RuntimeGlobals.relativeUrl}.prototype = URL.prototype;`
|
`${RuntimeGlobals.relativeUrl}.prototype = URL.prototype;`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue