aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSSink.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-01 04:03:32 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-01 04:03:32 -0700
commitb68600371046a37fcf0a8ee3245837ae54665395 (patch)
treef582dc580ee03a3bcd863b8cfd1e1e7d7003d00c /src/bun.js/bindings/JSSink.cpp
parentcd7dd0f00767b0464264b5c9401efbd40293a11a (diff)
downloadbun-b68600371046a37fcf0a8ee3245837ae54665395.tar.gz
bun-b68600371046a37fcf0a8ee3245837ae54665395.tar.zst
bun-b68600371046a37fcf0a8ee3245837ae54665395.zip
[stremas] Regenerate JSSInk
Diffstat (limited to 'src/bun.js/bindings/JSSink.cpp')
-rw-r--r--src/bun.js/bindings/JSSink.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/bun.js/bindings/JSSink.cpp b/src/bun.js/bindings/JSSink.cpp
index 1e5e71662..65db7de4b 100644
--- a/src/bun.js/bindings/JSSink.cpp
+++ b/src/bun.js/bindings/JSSink.cpp
@@ -1,9 +1,9 @@
// AUTO-GENERATED FILE. DO NOT EDIT.
-// Generated by /Users/jarred/Code/bun/src/bun.js/generate-jssink.js at 2022-06-29T05:28:50.141Z
+// Generated by 'make generate-sink' at 2022-07-01T08:27:39.340Z
// To regenerate this file, run:
//
-// bun src/bun.js/generate-jssink.js
+// make generate-sink
//
#include "root.h"
#include "JSSink.h"
@@ -355,6 +355,7 @@ JSC_DEFINE_HOST_FUNCTION(HTTPSResponseSink__doClose, (JSC::JSGlobalObject * lexi
end ArrayBufferSink__end ReadOnly|DontDelete|Function 0
start ArrayBufferSink__start ReadOnly|DontDelete|Function 1
write ArrayBufferSink__write ReadOnly|DontDelete|Function 1
+
@end
*/
@@ -375,6 +376,7 @@ JSC_DEFINE_HOST_FUNCTION(HTTPSResponseSink__doClose, (JSC::JSGlobalObject * lexi
end HTTPResponseSink__end ReadOnly|DontDelete|Function 0
start HTTPResponseSink__start ReadOnly|DontDelete|Function 1
write HTTPResponseSink__write ReadOnly|DontDelete|Function 1
+
@end
*/
@@ -395,6 +397,7 @@ JSC_DEFINE_HOST_FUNCTION(HTTPSResponseSink__doClose, (JSC::JSGlobalObject * lexi
end HTTPSResponseSink__end ReadOnly|DontDelete|Function 0
start HTTPSResponseSink__start ReadOnly|DontDelete|Function 1
write HTTPSResponseSink__write ReadOnly|DontDelete|Function 1
+
@end
*/
@@ -550,6 +553,7 @@ void JSArrayBufferSinkPrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObject
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSArrayBufferSink::info(), JSArrayBufferSinkPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSArrayBufferSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -557,6 +561,7 @@ void JSReadableArrayBufferSinkControllerPrototype::finishCreation(JSC::VM& vm, J
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSReadableArrayBufferSinkController::info(), JSReadableArrayBufferSinkControllerPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSArrayBufferSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -766,6 +771,7 @@ void JSHTTPResponseSinkPrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObjec
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSHTTPResponseSink::info(), JSHTTPResponseSinkPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSHTTPResponseSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -773,6 +779,7 @@ void JSReadableHTTPResponseSinkControllerPrototype::finishCreation(JSC::VM& vm,
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSReadableHTTPResponseSinkController::info(), JSReadableHTTPResponseSinkControllerPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSHTTPResponseSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -982,6 +989,7 @@ void JSHTTPSResponseSinkPrototype::finishCreation(JSC::VM& vm, JSC::JSGlobalObje
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSHTTPSResponseSink::info(), JSHTTPSResponseSinkPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSHTTPSResponseSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -989,6 +997,7 @@ void JSReadableHTTPSResponseSinkControllerPrototype::finishCreation(JSC::VM& vm,
{
Base::finishCreation(vm);
reifyStaticProperties(vm, JSReadableHTTPSResponseSinkController::info(), JSReadableHTTPSResponseSinkControllerPrototypeTableValues, *this);
+ putDirect(vm, JSC::Identifier::fromString(vm, "sinkId"_s), JSC::jsNumber(JSHTTPSResponseSink::Sink), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
JSC_TO_STRING_TAG_WITHOUT_TRANSITION();
}
@@ -1375,8 +1384,7 @@ extern "C" void HTTPSResponseSink__onClose(JSC__JSValue controllerValue, JSC__JS
JSC::JSFunction* function = controller->m_onClose.get();
if (function == nullptr)
return;
- // only call close once
- controller->m_onClose.clear();
+
JSC::JSGlobalObject* globalObject = controller->globalObject();
auto callData = JSC::getCallData(function);
@@ -1384,4 +1392,7 @@ extern "C" void HTTPSResponseSink__onClose(JSC__JSValue controllerValue, JSC__JS
arguments.append(controller);
arguments.append(JSC::JSValue::decode(reason));
JSC::call(globalObject, function, callData, JSC::jsUndefined(), arguments);
+
+ // only call close once
+ controller->m_onClose.clear();
}