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:
Zilin Zhu
2022-09-06 15:57:16 +08:00
committed by GitHub
parent 5a71521021
commit b9fad14f87
12 changed files with 526 additions and 123 deletions

View File

@@ -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