Skip to content

Commit

Permalink
Fix node:https being readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Mar 14, 2023
1 parent ba994c5 commit 27f5012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/bun.js/http.exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -1487,13 +1487,7 @@ var defaultObject = {
return (_globalAgent ??= new Agent());
},
set globalAgent(agent) {},
[Symbol.for("CommonJS")]: 0,
};

var wrapper =
(0,
function () {
return defaultObject;
});

wrapper[Symbol.for("CommonJS")] = true;
export default wrapper;
export default defaultObject;
2 changes: 2 additions & 0 deletions src/bun.js/https.exports.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from "node:http";
const HTTP = import.meta.require("node:http");
export default HTTP;

0 comments on commit 27f5012

Please sign in to comment.