summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-05 21:01:54 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-05 21:01:54 +0200
commit68c4eea34dc0ddf680036db62f1b9daeb131cfba (patch)
treeb72a6bb2c47443bb71b71638ac9c2eb0b9cf5ef9 /js/src/frontend/Parser.h
parent8bbd0d556c0bf583b16076844b9e263a5f996495 (diff)
downloadUXP-68c4eea34dc0ddf680036db62f1b9daeb131cfba.tar
UXP-68c4eea34dc0ddf680036db62f1b9daeb131cfba.tar.gz
UXP-68c4eea34dc0ddf680036db62f1b9daeb131cfba.tar.lz
UXP-68c4eea34dc0ddf680036db62f1b9daeb131cfba.tar.xz
UXP-68c4eea34dc0ddf680036db62f1b9daeb131cfba.zip
Remove the |bool strict| argument from the report-at-current-offset
Parser function (zeport). zeport => qeport
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index 88d705108..402b977ba 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -907,12 +907,19 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
bool reportHelper(ParseReportKind kind, bool strict, uint32_t offset,
unsigned errorNumber, va_list args);
public:
- bool zeport(ParseReportKind kind, bool strict, unsigned errorNumber, ...);
+ bool qeport(ParseReportKind kind, unsigned errorNumber, ...);
bool reportWithNode(ParseReportKind kind, bool strict, Node pn, unsigned errorNumber, ...);
bool reportNoOffset(ParseReportKind kind, bool strict, unsigned errorNumber, ...);
bool reportWithOffset(ParseReportKind kind, bool strict, 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
+ * arguments.
+ */
+ MOZ_MUST_USE bool strictModeError(unsigned errorNumber, ...);
+
Parser(ExclusiveContext* cx, LifoAlloc& alloc, const ReadOnlyCompileOptions& options,
const char16_t* chars, size_t length, bool foldConstants, UsedNameTracker& usedNames,
Parser<SyntaxParseHandler>* syntaxParser, LazyScript* lazyOuterFunction);