Skip to content

Commit

Permalink
Merge pull request #6832 from webpack/reflect
Browse files Browse the repository at this point in the history
Use 'Reflect.defineProperty' instead of 'Object.defineProperty'
  • Loading branch information
sokra committed Mar 26, 2018
2 parents 7f11210 + b43db87 commit 4861d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webpack.js
Expand Up @@ -155,7 +155,7 @@ exportPlugins((exports.debug = {}), {
});

const defineMissingPluginError = (namespace, pluginName, errorMessage) => {
Reflect.defineProperty(namespace, pluginName, {
Object.defineProperty(namespace, pluginName, {
configurable: false,
enumerable: true,
get() {
Expand Down

0 comments on commit 4861d2c

Please sign in to comment.