diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-09 14:23:16 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:31 -0400 |
commit | 412f15de44cee51e2443bc4846fe9679dca7e1b4 (patch) | |
tree | 8a202b646ad534d88e2588a69c9dbab137652fd9 /js/src/frontend/BytecodeEmitter.cpp | |
parent | c185c2fe7230c30b3da9bf1b943a6efe3ad4f55c (diff) | |
download | UXP-412f15de44cee51e2443bc4846fe9679dca7e1b4.tar UXP-412f15de44cee51e2443bc4846fe9679dca7e1b4.tar.gz UXP-412f15de44cee51e2443bc4846fe9679dca7e1b4.tar.lz UXP-412f15de44cee51e2443bc4846fe9679dca7e1b4.tar.xz UXP-412f15de44cee51e2443bc4846fe9679dca7e1b4.zip |
1283712 - Part 3: Add Parser::errorWithNotes and Parser::errorWithNotesAt.
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.cpp')
-rw-r--r-- | js/src/frontend/BytecodeEmitter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 44787dc52..7b8b41727 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -3604,7 +3604,7 @@ BytecodeEmitter::reportError(ParseNode* pn, unsigned errorNumber, ...) va_list args; va_start(args, errorNumber); - bool result = tokenStream()->reportCompileErrorNumberVA(pos.begin, JSREPORT_ERROR, + bool result = tokenStream()->reportCompileErrorNumberVA(nullptr, pos.begin, JSREPORT_ERROR, errorNumber, args); va_end(args); return result; @@ -3617,7 +3617,8 @@ BytecodeEmitter::reportExtraWarning(ParseNode* pn, unsigned errorNumber, ...) va_list args; va_start(args, errorNumber); - bool result = tokenStream()->reportExtraWarningErrorNumberVA(pos.begin, errorNumber, args); + bool result = tokenStream()->reportExtraWarningErrorNumberVA(nullptr, pos.begin, + errorNumber, args); va_end(args); return result; } @@ -3629,7 +3630,7 @@ BytecodeEmitter::reportStrictModeError(ParseNode* pn, unsigned errorNumber, ...) va_list args; va_start(args, errorNumber); - bool result = tokenStream()->reportStrictModeErrorNumberVA(pos.begin, sc->strict(), + bool result = tokenStream()->reportStrictModeErrorNumberVA(nullptr, pos.begin, sc->strict(), errorNumber, args); va_end(args); return result; |