зеркало из https://github.com/mozilla/pjs.git
Simple null defense in js_PCToLineNumber (355341, r=igor).
This commit is contained in:
Родитель
aab0264ecc
Коммит
68f1c50927
|
@ -1441,6 +1441,10 @@ js_PCToLineNumber(JSContext *cx, JSScript *script, jsbytecode *pc)
|
|||
jssrcnote *sn;
|
||||
JSSrcNoteType type;
|
||||
|
||||
/* Cope with JSStackFrame.pc value prior to entering js_Interpret. */
|
||||
if (!pc)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Special case: function definition needs no line number note because
|
||||
* the function's script contains its starting line number.
|
||||
|
|
Загрузка…
Ссылка в новой задаче