Skip to content

Commit 97855e6

Browse files
authored
resolve-shims: prevent prototype manipulation (#246)
1 parent bae7ece commit 97855e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/resolve-shims.js

+5
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ function separateExposeGlobals(shims) {
123123
, exposeGlobals = {};
124124

125125
Object.keys(shims).forEach(function (k) {
126+
// https://github.com/thlorenz/browserify-shim/issues/245
127+
if (k === '__proto__' || k === 'constructor') {
128+
return;
129+
}
130+
126131
var val = shims[k]
127132
, exp = val && val.exports;
128133

0 commit comments

Comments
 (0)