summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-14 10:15:10 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:43 -0400
commitccb322db6d1f14c3013bacb01dcb064a3f7fa28f (patch)
tree31d99375ece8cdadb53154a62524d87c7bad4837 /js/src/frontend/Parser.h
parent03df00e45ff4dd24b739a973d56edaf800313f7f (diff)
downloadUXP-ccb322db6d1f14c3013bacb01dcb064a3f7fa28f.tar
UXP-ccb322db6d1f14c3013bacb01dcb064a3f7fa28f.tar.gz
UXP-ccb322db6d1f14c3013bacb01dcb064a3f7fa28f.tar.lz
UXP-ccb322db6d1f14c3013bacb01dcb064a3f7fa28f.tar.xz
UXP-ccb322db6d1f14c3013bacb01dcb064a3f7fa28f.zip
420857 - Part 1: Report the position of opening brace for missing brace error in function body.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index 7866bc4fd..b1d3bdee0 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -1459,6 +1459,8 @@ class Parser final : public ParserBase, private JS::AutoGCRooter
bool hasValidSimpleStrictParameterNames();
+ void reportMissingClosing(unsigned errorNumber, unsigned noteNumber, uint32_t openedPos);
+
void reportRedeclaration(HandlePropertyName name, DeclarationKind prevKind, TokenPos pos,
uint32_t prevPos);
bool notePositionalFormalParameter(Node fn, HandlePropertyName name, uint32_t beginPos,