Skip to content

Commit 4861d2c

Browse files
authored
Merge pull request webpack#6832 from webpack/reflect
Use 'Reflect.defineProperty' instead of 'Object.defineProperty'
2 parents 7f11210 + b43db87 commit 4861d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exportPlugins((exports.debug = {}), {
155155
});
156156

157157
const defineMissingPluginError = (namespace, pluginName, errorMessage) => {
158-
Reflect.defineProperty(namespace, pluginName, {
158+
Object.defineProperty(namespace, pluginName, {
159159
configurable: false,
160160
enumerable: true,
161161
get() {

0 commit comments

Comments
 (0)