From fd680d6c1d88caeb56f9d2280d28251eb9c64a93 Mon Sep 17 00:00:00 2001 From: hiroki osame Date: Wed, 5 Apr 2023 20:38:47 -0400 Subject: fix: build warnings (#2562) --- src/bun.js/node-dns.exports.js | 1 - src/bun.js/perf_hooks.exports.js | 1 - src/bun.js/repl.exports.js | 1 - src/bun.js/undici.exports.js | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3