diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 15:52:17 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:17 -0400 |
commit | d400e9491c0be93f34f368227d6a3e4d056d9061 (patch) | |
tree | f06d6397e3d823c6c936f26514dd7a6ce8abda08 /js/src/frontend/TokenStream.h | |
parent | b41de8683d8d28d08a6e2b79511610a268342a0e (diff) | |
download | UXP-d400e9491c0be93f34f368227d6a3e4d056d9061.tar UXP-d400e9491c0be93f34f368227d6a3e4d056d9061.tar.gz UXP-d400e9491c0be93f34f368227d6a3e4d056d9061.tar.lz UXP-d400e9491c0be93f34f368227d6a3e4d056d9061.tar.xz UXP-d400e9491c0be93f34f368227d6a3e4d056d9061.zip |
1326454 - Make TokenStream::peekChar's signature fallible.
Diffstat (limited to 'js/src/frontend/TokenStream.h')
-rw-r--r-- | js/src/frontend/TokenStream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/frontend/TokenStream.h b/js/src/frontend/TokenStream.h index 19385b499..e0e4b959e 100644 --- a/js/src/frontend/TokenStream.h +++ b/js/src/frontend/TokenStream.h @@ -990,10 +990,10 @@ class MOZ_STACK_CLASS TokenStream MOZ_ASSERT(c == expect); } - int32_t peekChar() { - int32_t c = getChar(); - ungetChar(c); - return c; + MOZ_MUST_USE bool peekChar(int32_t* c) { + *c = getChar(); + ungetChar(*c); + return true; } void skipChars(int n) { |