aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/builtins/codegen/index.ts7
-rw-r--r--src/js/out/modules/thirdparty/ws.js2
-rw-r--r--src/js/thirdparty/ws.js2
3 files changed, 3 insertions, 8 deletions
diff --git a/src/js/builtins/codegen/index.ts b/src/js/builtins/codegen/index.ts
index 5fbc15279..4171533b2 100644
--- a/src/js/builtins/codegen/index.ts
+++ b/src/js/builtins/codegen/index.ts
@@ -8,12 +8,7 @@ import { spawn } from "bun";
async function createStaticHashtables() {
const STATIC_HASH_TABLES = ["src/bun.js/bindings/Process.cpp"];
console.time("Creating static hash tables...");
- const create_hash_table = [
- "src/bun.js/WebKit/Source/JavaScriptCore/create_hash_table",
- "bun-webkit/Source/JavaScriptCore/create_hash_table",
- ]
- .map(x => path.join(import.meta.dir, "../../../../" + x))
- .find(x => existsSync(x));
+ const create_hash_table = path.join(import.meta.dir, "../../../../src/bun.js/scripts/create_hash_table");
if (!create_hash_table) {
console.warn(
"Could not find create_hash_table executable. Run `bun i` or clone webkit to build static hash tables",
diff --git a/src/js/out/modules/thirdparty/ws.js b/src/js/out/modules/thirdparty/ws.js
index 175ab5fa1..a30a4c688 100644
--- a/src/js/out/modules/thirdparty/ws.js
+++ b/src/js/out/modules/thirdparty/ws.js
@@ -446,7 +446,7 @@ class BunWebSocketMocked extends EventEmitter {
this.#binaryType = type;
}
get readyState() {
- return readyStates[this.#state];
+ return this.#state;
}
get url() {
return this.#url;
diff --git a/src/js/thirdparty/ws.js b/src/js/thirdparty/ws.js
index 722d37347..8fa5491e3 100644
--- a/src/js/thirdparty/ws.js
+++ b/src/js/thirdparty/ws.js
@@ -631,7 +631,7 @@ class BunWebSocketMocked extends EventEmitter {
}
get readyState() {
- return readyStates[this.#state];
+ return this.#state;
}
get url() {
return this.#url;