branch: master
commit ad4c5ccae4df5bd8664160341123deb72362e503
Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>

    Report the correct octal number error
---
 js2-mode.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 5745dc5..e667df0 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -10329,7 +10329,7 @@ array-literals, array comprehensions and regular 
expressions."
       (setq node (make-js2-number-node))
       (when (and js2-in-use-strict-directive
                  (= (js2-number-node-num-base node) 8))
-        (js2-report-error "msg.no.octal.literal"))
+        (js2-report-error "msg.no.octal.strict"))
       node)
      ((or (= tt js2-STRING) (= tt js2-NO_SUBS_TEMPLATE))
       (make-js2-string-node :type tt))

Reply via email to