branch: externals/js2-mode
commit 9837d782536cb8ee3a7b9f4b25e9dbb307371b3f
Author: Philipp Stephani <p...@google.com>
Commit: Philipp Stephani <p...@google.com>

    Fix ‘huge-hex’ test for newer Emacsen.
    
    Starting with Emacs 27, we have big integers, so the huge hexadecimal value 
is
    parsed exactly.
---
 tests/parser.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/parser.el b/tests/parser.el
index 2ad8b62..d0648c6 100644
--- a/tests/parser.el
+++ b/tests/parser.el
@@ -586,7 +586,8 @@ the test."
 
 (js2-deftest-parse decimal-starting-with-zero "081;" :reference "81;")
 
-(js2-deftest-parse huge-hex "0x0123456789abcdefABCDEF;" :reference "-1;")
+(js2-deftest-parse huge-hex "0x0123456789abcdefABCDEF;"
+  :reference (if (> emacs-major-version 26) "1375488932539311409843695;" 
"-1;"))
 
 (js2-deftest-parse octal-without-o "071;" :reference "57;")
 

Reply via email to