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/TokenStream.h | |
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/TokenStream.h')
-rw-r--r-- | js/src/frontend/TokenStream.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/js/src/frontend/TokenStream.h b/js/src/frontend/TokenStream.h index fbfefbfe1..e0119c83d 100644 --- a/js/src/frontend/TokenStream.h +++ b/js/src/frontend/TokenStream.h @@ -410,11 +410,12 @@ class MOZ_STACK_CLASS TokenStream // General-purpose error reporters. You should avoid calling these // directly, and instead use the more succinct alternatives (error(), // warning(), &c.) in TokenStream, Parser, and BytecodeEmitter. - bool reportCompileErrorNumberVA(uint32_t offset, unsigned flags, unsigned errorNumber, - va_list args); - bool reportStrictModeErrorNumberVA(uint32_t offset, bool strictMode, unsigned errorNumber, - va_list args); - bool reportExtraWarningErrorNumberVA(uint32_t offset, unsigned errorNumber, va_list args); + bool reportCompileErrorNumberVA(UniquePtr<JSErrorNotes> notes, uint32_t offset, unsigned flags, + unsigned errorNumber, va_list args); + bool reportStrictModeErrorNumberVA(UniquePtr<JSErrorNotes> notes, uint32_t offset, + bool strictMode, unsigned errorNumber, va_list args); + bool reportExtraWarningErrorNumberVA(UniquePtr<JSErrorNotes> notes, uint32_t offset, + unsigned errorNumber, va_list args); // asm.js reporter void reportAsmJSError(uint32_t offset, unsigned errorNumber, ...); |