forked from mirrors/gecko-dev
Bug 1643049 - Fix string usage in ClonedErrorHolder::Init. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D78131
This commit is contained in:
parent
47b6e279cf
commit
e64af3d86d
1 changed files with 3 additions and 2 deletions
|
|
@ -59,8 +59,9 @@ void ClonedErrorHolder::Init(JSContext* aCx, JS::Handle<JSObject*> aError,
|
|||
mFilename = err->filename;
|
||||
}
|
||||
if (err->linebuf()) {
|
||||
AppendUTF16toUTF8(nsDependentString(err->linebuf(), err->linebufLength()),
|
||||
mSourceLine);
|
||||
AppendUTF16toUTF8(
|
||||
nsDependentSubstring(err->linebuf(), err->linebufLength()),
|
||||
mSourceLine);
|
||||
mTokenOffset = err->tokenOffset();
|
||||
}
|
||||
mLineNumber = err->lineno;
|
||||
|
|
|
|||
Loading…
Reference in a new issue