diff options
Diffstat (limited to 'src/bun.js/bindings/JSSinkLookupTable.h')
-rw-r--r-- | src/bun.js/bindings/JSSinkLookupTable.h | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/src/bun.js/bindings/JSSinkLookupTable.h b/src/bun.js/bindings/JSSinkLookupTable.h index ed15ffa1e..bdd669d20 100644 --- a/src/bun.js/bindings/JSSinkLookupTable.h +++ b/src/bun.js/bindings/JSSinkLookupTable.h @@ -4,8 +4,8 @@ -static const struct CompactHashIndex JSArrayBufferSinkPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSArrayBufferSinkPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -21,13 +21,14 @@ static const struct CompactHashIndex JSArrayBufferSinkPrototypeTableIndex[18] = { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSArrayBufferSinkPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__doClose), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__write), (intptr_t)(1) } }, @@ -42,8 +43,8 @@ static const struct HashTable JSArrayBufferSinkPrototypeTable = -static const struct CompactHashIndex JSReadableArrayBufferSinkControllerPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSReadableArrayBufferSinkControllerPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -59,13 +60,14 @@ static const struct CompactHashIndex JSReadableArrayBufferSinkControllerPrototyp { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSReadableArrayBufferSinkControllerPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableArrayBufferSinkController__close), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableArrayBufferSinkController__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(ArrayBufferSink__write), (intptr_t)(1) } }, @@ -80,8 +82,8 @@ static const struct HashTable JSReadableArrayBufferSinkControllerPrototypeTable -static const struct CompactHashIndex JSHTTPResponseSinkPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSHTTPResponseSinkPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -97,13 +99,14 @@ static const struct CompactHashIndex JSHTTPResponseSinkPrototypeTableIndex[18] = { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSHTTPResponseSinkPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__doClose), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__write), (intptr_t)(1) } }, @@ -118,8 +121,8 @@ static const struct HashTable JSHTTPResponseSinkPrototypeTable = -static const struct CompactHashIndex JSReadableHTTPResponseSinkControllerPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSReadableHTTPResponseSinkControllerPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -135,13 +138,14 @@ static const struct CompactHashIndex JSReadableHTTPResponseSinkControllerPrototy { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSReadableHTTPResponseSinkControllerPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableHTTPResponseSinkController__close), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableHTTPResponseSinkController__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPResponseSink__write), (intptr_t)(1) } }, @@ -156,8 +160,8 @@ static const struct HashTable JSReadableHTTPResponseSinkControllerPrototypeTable -static const struct CompactHashIndex JSHTTPSResponseSinkPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSHTTPSResponseSinkPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -173,13 +177,14 @@ static const struct CompactHashIndex JSHTTPSResponseSinkPrototypeTableIndex[18] { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSHTTPSResponseSinkPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__doClose), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__write), (intptr_t)(1) } }, @@ -194,8 +199,8 @@ static const struct HashTable JSHTTPSResponseSinkPrototypeTable = -static const struct CompactHashIndex JSReadableHTTPSResponseSinkControllerPrototypeTableIndex[18] = { - { 1, -1 }, +static const struct CompactHashIndex JSReadableHTTPSResponseSinkControllerPrototypeTableIndex[19] = { + { -1, -1 }, { -1, -1 }, { -1, -1 }, { -1, -1 }, @@ -211,13 +216,14 @@ static const struct CompactHashIndex JSReadableHTTPSResponseSinkControllerProtot { -1, -1 }, { -1, -1 }, { 4, -1 }, - { 2, 17 }, + { 1, 17 }, + { 2, 18 }, { 3, -1 }, }; static const struct HashTableValue JSReadableHTTPSResponseSinkControllerPrototypeTableValues[5] = { { "close"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableHTTPSResponseSinkController__close), (intptr_t)(0) } }, - { "drain"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__drain), (intptr_t)(1) } }, + { "flush"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__flush), (intptr_t)(1) } }, { "end"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(JSReadableHTTPSResponseSinkController__end), (intptr_t)(0) } }, { "start"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__start), (intptr_t)(1) } }, { "write"_s, static_cast<unsigned>(PropertyAttribute::ReadOnly|PropertyAttribute::DontDelete|PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(HTTPSResponseSink__write), (intptr_t)(1) } }, |