mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +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_;
|
static const Class protoClass_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
[[nodiscard]] bool InitStreamExtras(JSContext* cx, HandleObject global);
|
||||||
|
|
||||||
} // namespace js
|
} // namespace js
|
||||||
|
|
||||||
#endif /* builtin_Stream_h */
|
#endif /* builtin_Stream_h */
|
||||||
|
|
|
||||||
|
|
@ -464,6 +464,10 @@ GlobalObject::initStandardClasses(JSContext* cx, Handle<GlobalObject*> global)
|
||||||
if (!ensureConstructor(cx, global, static_cast<JSProtoKey>(k)))
|
if (!ensureConstructor(cx, global, static_cast<JSProtoKey>(k)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cx->options().streams() && !InitStreamExtras(cx, global))
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue