diff options
author | 2023-02-06 23:27:18 -0800 | |
---|---|---|
committer | 2023-02-06 23:27:18 -0800 | |
commit | 52f9c3d05ed06de865ab01ffb7def3522984745d (patch) | |
tree | bf1ba3b62de29efdc06ad8453fb1b9bbdfda89b7 | |
parent | f947987a2c13d3bed386b5c5a626d44dc452982c (diff) | |
download | bun-52f9c3d05ed06de865ab01ffb7def3522984745d.tar.gz bun-52f9c3d05ed06de865ab01ffb7def3522984745d.tar.zst bun-52f9c3d05ed06de865ab01ffb7def3522984745d.zip |
set the type
-rw-r--r-- | src/bun.js/bindings/ZigGeneratedClasses.h | 2 | ||||
-rw-r--r-- | src/bun.js/node/node.classes.ts | 2 | ||||
-rw-r--r-- | src/bun.js/scripts/class-definitions.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/bindings/ZigGeneratedClasses.h b/src/bun.js/bindings/ZigGeneratedClasses.h index 362d83adb..f9cc57b01 100644 --- a/src/bun.js/bindings/ZigGeneratedClasses.h +++ b/src/bun.js/bindings/ZigGeneratedClasses.h @@ -1058,7 +1058,7 @@ public: static void destroy(JSC::JSCell*); static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) { - return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(static_cast<JSC::JSType>(ObjectType), StructureFlags), info()); + return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(static_cast<JSC::JSType>(0b11101110), StructureFlags), info()); } static JSObject* createPrototype(VM& vm, JSDOMGlobalObject* globalObject); diff --git a/src/bun.js/node/node.classes.ts b/src/bun.js/node/node.classes.ts index d053821c0..14a9ebbc5 100644 --- a/src/bun.js/node/node.classes.ts +++ b/src/bun.js/node/node.classes.ts @@ -6,7 +6,7 @@ export default [ construct: true, finalize: true, klass: {}, - + JSType: "0b11101110", proto: { isBlockDevice: { fn: "isBlockDevice_", diff --git a/src/bun.js/scripts/class-definitions.ts b/src/bun.js/scripts/class-definitions.ts index 53d168d35..575daa01c 100644 --- a/src/bun.js/scripts/class-definitions.ts +++ b/src/bun.js/scripts/class-definitions.ts @@ -16,7 +16,7 @@ export type Field = length?: number; DOMJIT?: { returns: string; - args?: [string, string] | [string, string, string] | [string]; + args?: [string, string] | [string, string, string] | [string] | []; }; } & PropertyAttribute) | { internal: true }; |