summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/SyntaxParseHandler.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/SyntaxParseHandler.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/SyntaxParseHandler.h')
-rw-r--r--js/src/frontend/SyntaxParseHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/frontend/SyntaxParseHandler.h b/js/src/frontend/SyntaxParseHandler.h
index b7f00605b..85695ba9c 100644
--- a/js/src/frontend/SyntaxParseHandler.h
+++ b/js/src/frontend/SyntaxParseHandler.h
@@ -519,7 +519,7 @@ class SyntaxParseHandler
MOZ_MUST_USE Node setLikelyIIFE(Node pn) {
return pn; // Remain in syntax-parse mode.
}
- void setPrologue(Node pn) {}
+ void setInDirectivePrologue(Node pn) {}
bool isConstant(Node pn) { return false; }