1283712 - Part 3: Add Parser::errorWithNotes and Parser::errorWithNotesAt.

This commit is contained in:
Gaming4JC 2019-06-09 14:23:16 -04:00 • committed by Roy Tam
commit dc06903cd1
5 changed files with 82 additions and 35 deletions

View file

@ -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