diff options
author | 2023-04-05 20:38:47 -0400 | |
---|---|---|
committer | 2023-04-05 17:38:47 -0700 | |
commit | fd680d6c1d88caeb56f9d2280d28251eb9c64a93 (patch) | |
tree | 8ba6c43249a670e13941ddc7e63a0c71b4248c6f | |
parent | f7d0eee0ac99e621b6762982edaed255b654c541 (diff) | |
download | bun-fd680d6c1d88caeb56f9d2280d28251eb9c64a93.tar.gz bun-fd680d6c1d88caeb56f9d2280d28251eb9c64a93.tar.zst bun-fd680d6c1d88caeb56f9d2280d28251eb9c64a93.zip |
fix: build warnings (#2562)
-rw-r--r-- | src/bun.js/node-dns.exports.js | 1 | ||||
-rw-r--r-- | src/bun.js/perf_hooks.exports.js | 1 | ||||
-rw-r--r-- | src/bun.js/repl.exports.js | 1 | ||||
-rw-r--r-- | src/bun.js/undici.exports.js | 2 |
4 files changed, 1 insertions, 4 deletions
diff --git a/src/bun.js/node-dns.exports.js b/src/bun.js/node-dns.exports.js index f7516923a..3bf9bac40 100644 --- a/src/bun.js/node-dns.exports.js +++ b/src/bun.js/node-dns.exports.js @@ -651,7 +651,6 @@ const exports = { setDefaultResultOrder, resolve, reverse, - resolve, resolve4, resolve6, resolveAny, diff --git a/src/bun.js/perf_hooks.exports.js b/src/bun.js/perf_hooks.exports.js index c461abafe..5cc46a5e1 100644 --- a/src/bun.js/perf_hooks.exports.js +++ b/src/bun.js/perf_hooks.exports.js @@ -20,7 +20,6 @@ export class PerformanceNodeTiming { export default { performance, PerformanceEntry, - PerformanceEntry, PerformanceNodeTiming, [Symbol.for("CommonJS")]: 0, }; diff --git a/src/bun.js/repl.exports.js b/src/bun.js/repl.exports.js index 196891fc6..35f500de3 100644 --- a/src/bun.js/repl.exports.js +++ b/src/bun.js/repl.exports.js @@ -38,7 +38,6 @@ var repl = { history: [], _initialPrompt: "> ", terminal: true, - cursor: 0, input: new Proxy( {}, { diff --git a/src/bun.js/undici.exports.js b/src/bun.js/undici.exports.js index 58621ff7d..d2d66e0ae 100644 --- a/src/bun.js/undici.exports.js +++ b/src/bun.js/undici.exports.js @@ -167,7 +167,7 @@ export async function request( if (typeof url === "string") { if (query) url = new URL(url); } else if (typeof url === "object" && url !== null) { - if (!url instanceof URL) { + if (!(url instanceof URL) ){ // TODO: Parse undici UrlObject throw new Error("not implemented"); } |