mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 20:17:33 +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
|
|
@ -1435,11 +1435,11 @@ JSScript::loadSource(JSContext* cx, ScriptSource* ss, bool* worked)
|
|||
return true;
|
||||
}
|
||||
|
||||
JSFlatString*
|
||||
JSScript::sourceData(JSContext* cx)
|
||||
/* static */ JSFlatString*
|
||||
JSScript::sourceData(JSContext* cx, HandleScript script)
|
||||
{
|
||||
MOZ_ASSERT(scriptSource()->hasSourceData());
|
||||
return scriptSource()->substring(cx, sourceStart(), sourceEnd());
|
||||
MOZ_ASSERT(script->scriptSource()->hasSourceData());
|
||||
return script->scriptSource()->substring(cx, script->sourceStart(), script->sourceEnd());
|
||||
}
|
||||
|
||||
JSFlatString*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue