mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
1320408 - Part 12: Change JSScript::sourceData to static method.
This commit is contained in:
parent
56a4517a1f
commit
d208cccd10
9 changed files with 16 additions and 15 deletions
|
|
@ -1499,7 +1499,7 @@ class JSScript : public js::gc::TenuredCell
|
|||
* De-lazifies the canonical function. Must be called before entering code
|
||||
* that expects the function to be non-lazy.
|
||||
*/
|
||||
inline void ensureNonLazyCanonicalFunction(JSContext* cx);
|
||||
inline void ensureNonLazyCanonicalFunction();
|
||||
|
||||
js::ModuleObject* module() const {
|
||||
if (bodyScope()->is<js::ModuleScope>())
|
||||
|
|
@ -1518,7 +1518,7 @@ class JSScript : public js::gc::TenuredCell
|
|||
// directly, via lazy arguments or a rest parameter.
|
||||
bool mayReadFrameArgsDirectly();
|
||||
|
||||
JSFlatString* sourceData(JSContext* cx);
|
||||
static JSFlatString* sourceData(JSContext* cx, JS::HandleScript script);
|
||||
JSFlatString* sourceDataWithPrelude(JSContext* cx);
|
||||
|
||||
static bool loadSource(JSContext* cx, js::ScriptSource* ss, bool* worked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue