mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Add native ReadableState (#1210)
* use functionSpace for JSStringDecoderConstructor and fix console.log on prototype * Add native ReadableState * move kPaused to class property
This commit is contained in:
@@ -411,16 +411,6 @@ void JSStringDecoderConstructor::initializeProperties(VM& vm, JSC::JSGlobalObjec
|
||||
{
|
||||
}
|
||||
|
||||
JSC::GCClient::IsoSubspace* JSStringDecoderConstructor::subspaceForImpl(JSC::VM& vm)
|
||||
{
|
||||
return WebCore::subspaceForImpl<JSStringDecoderConstructor, UseCustomHeapCellType::No>(
|
||||
vm,
|
||||
[](auto& spaces) { return spaces.m_clientSubspaceForStringDecoderConstructor.get(); },
|
||||
[](auto& spaces, auto&& space) { spaces.m_clientSubspaceForStringDecoderConstructor = WTFMove(space); },
|
||||
[](auto& spaces) { return spaces.m_subspaceForStringDecoderConstructor.get(); },
|
||||
[](auto& spaces, auto&& space) { spaces.m_subspaceForStringDecoderConstructor = WTFMove(space); });
|
||||
}
|
||||
|
||||
const ClassInfo JSStringDecoderConstructor::s_info = { "StringDecoder"_s, &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSStringDecoderConstructor) };
|
||||
|
||||
} // namespace Zig
|
||||
|
||||
Reference in New Issue
Block a user