aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/cpp/ReadableStreamBuiltins.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-01 03:21:55 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-01 03:21:55 -0700
commitf2569c8c6ed7ce10451005dcc61e4a2d8807e869 (patch)
tree04a91a3ac7970393a816a91517ae1ee04ce8ffdf /src/bun.js/builtins/cpp/ReadableStreamBuiltins.h
parent4aec5151e54a328a9507e4cf48fc26e76d12a35f (diff)
downloadbun-f2569c8c6ed7ce10451005dcc61e4a2d8807e869.tar.gz
bun-f2569c8c6ed7ce10451005dcc61e4a2d8807e869.tar.zst
bun-f2569c8c6ed7ce10451005dcc61e4a2d8807e869.zip
Move ImportMeta into it's own object
Diffstat (limited to 'src/bun.js/builtins/cpp/ReadableStreamBuiltins.h')
-rw-r--r--src/bun.js/builtins/cpp/ReadableStreamBuiltins.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/builtins/cpp/ReadableStreamBuiltins.h b/src/bun.js/builtins/cpp/ReadableStreamBuiltins.h
index 4f6f146d1..a27974eed 100644
--- a/src/bun.js/builtins/cpp/ReadableStreamBuiltins.h
+++ b/src/bun.js/builtins/cpp/ReadableStreamBuiltins.h
@@ -59,6 +59,10 @@ extern const char* const s_readableStreamReadableStreamToTextCode;
extern const int s_readableStreamReadableStreamToTextCodeLength;
extern const JSC::ConstructAbility s_readableStreamReadableStreamToTextCodeConstructAbility;
extern const JSC::ConstructorKind s_readableStreamReadableStreamToTextCodeConstructorKind;
+extern const char* const s_readableStreamReadableStreamToArrayBufferCode;
+extern const int s_readableStreamReadableStreamToArrayBufferCodeLength;
+extern const JSC::ConstructAbility s_readableStreamReadableStreamToArrayBufferCodeConstructAbility;
+extern const JSC::ConstructorKind s_readableStreamReadableStreamToArrayBufferCodeConstructorKind;
extern const char* const s_readableStreamReadableStreamToJSONCode;
extern const int s_readableStreamReadableStreamToJSONCodeLength;
extern const JSC::ConstructAbility s_readableStreamReadableStreamToJSONCodeConstructAbility;
@@ -108,6 +112,7 @@ extern const JSC::ConstructorKind s_readableStreamLockedCodeConstructorKind;
macro(initializeReadableStream, readableStreamInitializeReadableStream, 2) \
macro(readableStreamToArray, readableStreamReadableStreamToArray, 1) \
macro(readableStreamToText, readableStreamReadableStreamToText, 1) \
+ macro(readableStreamToArrayBuffer, readableStreamReadableStreamToArrayBuffer, 1) \
macro(readableStreamToJSON, readableStreamReadableStreamToJSON, 1) \
macro(readableStreamToBlob, readableStreamReadableStreamToBlob, 1) \
macro(consumeReadableStream, readableStreamConsumeReadableStream, 3) \
@@ -123,6 +128,7 @@ extern const JSC::ConstructorKind s_readableStreamLockedCodeConstructorKind;
#define WEBCORE_BUILTIN_READABLESTREAM_INITIALIZEREADABLESTREAM 1
#define WEBCORE_BUILTIN_READABLESTREAM_READABLESTREAMTOARRAY 1
#define WEBCORE_BUILTIN_READABLESTREAM_READABLESTREAMTOTEXT 1
+#define WEBCORE_BUILTIN_READABLESTREAM_READABLESTREAMTOARRAYBUFFER 1
#define WEBCORE_BUILTIN_READABLESTREAM_READABLESTREAMTOJSON 1
#define WEBCORE_BUILTIN_READABLESTREAM_READABLESTREAMTOBLOB 1
#define WEBCORE_BUILTIN_READABLESTREAM_CONSUMEREADABLESTREAM 1
@@ -139,6 +145,7 @@ extern const JSC::ConstructorKind s_readableStreamLockedCodeConstructorKind;
macro(readableStreamInitializeReadableStreamCode, initializeReadableStream, ASCIILiteral(), s_readableStreamInitializeReadableStreamCodeLength) \
macro(readableStreamReadableStreamToArrayCode, readableStreamToArray, ASCIILiteral(), s_readableStreamReadableStreamToArrayCodeLength) \
macro(readableStreamReadableStreamToTextCode, readableStreamToText, ASCIILiteral(), s_readableStreamReadableStreamToTextCodeLength) \
+ macro(readableStreamReadableStreamToArrayBufferCode, readableStreamToArrayBuffer, ASCIILiteral(), s_readableStreamReadableStreamToArrayBufferCodeLength) \
macro(readableStreamReadableStreamToJSONCode, readableStreamToJSON, ASCIILiteral(), s_readableStreamReadableStreamToJSONCodeLength) \
macro(readableStreamReadableStreamToBlobCode, readableStreamToBlob, ASCIILiteral(), s_readableStreamReadableStreamToBlobCodeLength) \
macro(readableStreamConsumeReadableStreamCode, consumeReadableStream, ASCIILiteral(), s_readableStreamConsumeReadableStreamCodeLength) \
@@ -162,6 +169,7 @@ extern const JSC::ConstructorKind s_readableStreamLockedCodeConstructorKind;
macro(pipeThrough) \
macro(pipeTo) \
macro(readableStreamToArray) \
+ macro(readableStreamToArrayBuffer) \
macro(readableStreamToBlob) \
macro(readableStreamToJSON) \
macro(readableStreamToText) \