summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 14:23:16 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:31 -0400
commit412f15de44cee51e2443bc4846fe9679dca7e1b4 (patch)
tree8a202b646ad534d88e2588a69c9dbab137652fd9 /js/src/frontend/Parser.h
parentc185c2fe7230c30b3da9bf1b943a6efe3ad4f55c (diff)
downloadUXP-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/Parser.h')
-rw-r--r--js/src/frontend/Parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index b850dc00b..35b9384a8 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -824,9 +824,12 @@ class ParserBase : public StrictModeGetter
/* Report the given error at the current offset. */
void error(unsigned errorNumber, ...);
+ void errorWithNotes(UniquePtr<JSErrorNotes> notes, unsigned errorNumber, ...);
/* Report the given error at the given offset. */
void errorAt(uint32_t offset, unsigned errorNumber, ...);
+ void errorWithNotesAt(UniquePtr<JSErrorNotes> notes, uint32_t offset,
+ unsigned errorNumber, ...);
/*
* Handle a strict mode error at the current offset. Report an error if in