Skip to content

Commit

Permalink
resolve-shims: prevent prototype manipulation (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendrucker authored Oct 14, 2022
1 parent bae7ece commit 97855e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/resolve-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ function separateExposeGlobals(shims) {
, exposeGlobals = {};

Object.keys(shims).forEach(function (k) {
// https://github.com/thlorenz/browserify-shim/issues/245
if (k === '__proto__' || k === 'constructor') {
return;
}

var val = shims[k]
, exp = val && val.exports;

Expand Down

0 comments on commit 97855e6

Please # to comment.