Skip to content

Commit 3fb1e0b

Browse files
committed
ref: Remove Object.assign from integrations
1 parent 57d3223 commit 3fb1e0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/integrations/rollup.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ function mergeIntoSentry() {
4343
return `
4444
__window.Sentry = __window.Sentry || {};
4545
__window.Sentry.Integrations = __window.Sentry.Integrations || {};
46-
Object.assign(__window.Sentry.Integrations, exports);
46+
for (var key in exports) {
47+
if (Object.prototype.hasOwnProperty.call(exports, key)) {
48+
__window.Sentry.Integrations[key] = exports[key];
49+
}
50+
}
4751
`;
4852
}
4953

0 commit comments

Comments
 (0)