mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Add stream constructor polyfills
This commit is contained in:
parent
85f7844b5a
commit
d132fe4728
3 changed files with 1508 additions and 13 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -165,6 +165,8 @@ class CountQueuingStrategy : public NativeObject
|
|||
static const Class protoClass_;
|
||||
};
|
||||
|
||||
[[nodiscard]] bool InitStreamExtras(JSContext* cx, HandleObject global);
|
||||
|
||||
} // namespace js
|
||||
|
||||
#endif /* builtin_Stream_h */
|
||||
|
|
|
|||
|
|
@ -464,6 +464,10 @@ GlobalObject::initStandardClasses(JSContext* cx, Handle<GlobalObject*> global)
|
|||
if (!ensureConstructor(cx, global, static_cast<JSProtoKey>(k)))
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cx->options().streams() && !InitStreamExtras(cx, global))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue