summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/FullParseHandler.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-05 21:30:52 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-05 21:30:52 +0200
commit1ee96e39db760004c33a235ea691ab06bac21375 (patch)
tree072c69413e081c47e258f7b0b7f5443e357cc756 /js/src/frontend/FullParseHandler.h
parent2950deb043a403377a589046acaa38cfe3dc9876 (diff)
downloadUXP-1ee96e39db760004c33a235ea691ab06bac21375.tar
UXP-1ee96e39db760004c33a235ea691ab06bac21375.tar.gz
UXP-1ee96e39db760004c33a235ea691ab06bac21375.tar.lz
UXP-1ee96e39db760004c33a235ea691ab06bac21375.tar.xz
UXP-1ee96e39db760004c33a235ea691ab06bac21375.zip
Specify an explicit offset when warning about "use asm" found in the
directive prologue of a script (rather than a function body).
Diffstat (limited to 'js/src/frontend/FullParseHandler.h')
-rw-r--r--js/src/frontend/FullParseHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/frontend/FullParseHandler.h b/js/src/frontend/FullParseHandler.h
index 0fd137796..da068e5af 100644
--- a/js/src/frontend/FullParseHandler.h
+++ b/js/src/frontend/FullParseHandler.h
@@ -845,7 +845,7 @@ class FullParseHandler
MOZ_MUST_USE ParseNode* setLikelyIIFE(ParseNode* pn) {
return parenthesize(pn);
}
- void setPrologue(ParseNode* pn) {
+ void setInDirectivePrologue(ParseNode* pn) {
pn->pn_prologue = true;
}