mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-17 20:57:30 +09:00
1320408 - Change JSScript::sourceDataWithPrelude to static method
UXP Interdiff
This commit is contained in:
parent
d208cccd10
commit
68b04671cb
2 changed files with 5 additions and 5 deletions
|
|
@ -1442,11 +1442,11 @@ JSScript::sourceData(JSContext* cx, HandleScript script)
|
||||||
return script->scriptSource()->substring(cx, script->sourceStart(), script->sourceEnd());
|
return script->scriptSource()->substring(cx, script->sourceStart(), script->sourceEnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
JSFlatString*
|
/* static */ JSFlatString*
|
||||||
JSScript::sourceDataWithPrelude(JSContext* cx)
|
JSScript::sourceDataWithPrelude(JSContext* cx, HandleScript script)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(scriptSource()->hasSourceData());
|
MOZ_ASSERT(script->scriptSource()->hasSourceData());
|
||||||
return scriptSource()->substring(cx, preludeStart(), sourceEnd());
|
return script->scriptSource()->substring(cx, script->preludeStart(), script->sourceEnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
UncompressedSourceCache::AutoHoldEntry::AutoHoldEntry()
|
UncompressedSourceCache::AutoHoldEntry::AutoHoldEntry()
|
||||||
|
|
|
||||||
|
|
@ -1519,7 +1519,7 @@ class JSScript : public js::gc::TenuredCell
|
||||||
bool mayReadFrameArgsDirectly();
|
bool mayReadFrameArgsDirectly();
|
||||||
|
|
||||||
static JSFlatString* sourceData(JSContext* cx, JS::HandleScript script);
|
static JSFlatString* sourceData(JSContext* cx, JS::HandleScript script);
|
||||||
JSFlatString* sourceDataWithPrelude(JSContext* cx);
|
static JSFlatString* sourceDataWithPrelude(JSContext* cx, JS::HandleScript script);
|
||||||
|
|
||||||
static bool loadSource(JSContext* cx, js::ScriptSource* ss, bool* worked);
|
static bool loadSource(JSContext* cx, js::ScriptSource* ss, bool* worked);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue