]> code.delx.au - gnu-emacs-elpa/commitdiff
Report the correct octal number error
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 8 Jun 2015 08:29:45 +0000 (01:29 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 8 Jun 2015 08:29:45 +0000 (01:29 -0700)
js2-mode.el

index 5745dc5dfb81c7b9d212460b5de5486f5ab0590c..e667df00767e4be047f9804b6146e9ef0a806b79 100644 (file)
@@ -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))