diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 06:39:27 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 06:39:27 +0200 |
commit | 7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80 (patch) | |
tree | 6ac572fc5d17fe69c465745deb0fca0d7adab4c0 /js/src/frontend/Parser.h | |
parent | 386cc5ee17b4e144fdffda1742031aa0cba7373a (diff) | |
download | UXP-7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80.tar UXP-7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80.tar.gz UXP-7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80.tar.lz UXP-7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80.tar.xz UXP-7d56f431ccc11f3b5e2e6deec331bd9c7a06cf80.zip |
Introduce Parser::errorAt
This reduces reporting an error at a particular offset to its bare
essentials, simplifying calls.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r-- | js/src/frontend/Parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 13580846b..efbaebafd 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -915,6 +915,9 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter /* Report the given error at the current offset. */ void error(unsigned errorNumber, ...); + /* Report the given error at the given offset. */ + void errorAt(uint32_t offset, unsigned errorNumber, ...); + /* * Handle a strict mode error at the current offset. Report an error if in * strict mode code, or warn if not, using the given error number and |