mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #1442 - Part 5: Implement WebIDL bindings for Streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
This commit is contained in:
parent
9b9075eef6
commit
0701dccaca
14 changed files with 255 additions and 157 deletions
|
|
@ -5487,3 +5487,11 @@ ReadableStream::getReader(JSContext* cx, Handle<ReadableStream*> stream,
|
|||
return CreateReadableStreamDefaultReader(cx, stream);
|
||||
return CreateReadableStreamBYOBReader(cx, stream);
|
||||
}
|
||||
|
||||
JS_FRIEND_API(JSObject*)
|
||||
js::UnwrapReadableStream(JSObject* obj)
|
||||
{
|
||||
if (JSObject* unwrapped = CheckedUnwrap(obj))
|
||||
return unwrapped->is<ReadableStream>() ? unwrapped : nullptr;
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1787,6 +1787,9 @@ UnwrapArrayBufferView(JSObject* obj);
|
|||
extern JS_FRIEND_API(JSObject*)
|
||||
UnwrapSharedArrayBuffer(JSObject* obj);
|
||||
|
||||
extern JS_FRIEND_API(JSObject*)
|
||||
UnwrapReadableStream(JSObject* obj);
|
||||
|
||||
|
||||
namespace detail {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue