From a015ec773194c353e9f5470f3fc343af69dd280f Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 25 Dec 2017 04:24:28 +0200 Subject: [PATCH] Switch to lexical binding Closes #426 --- js2-mode.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index bd597d39..65bf7d73 100644 --- a/js2-mode.el +++ b/js2-mode.el @@ -1,4 +1,4 @@ -;;; js2-mode.el --- Improved JavaScript editing mode +;;; js2-mode.el --- Improved JavaScript editing mode -*- lexical-binding: t -*- ;; Copyright (C) 2009, 2011-2017 Free Software Foundation, Inc. @@ -2375,10 +2375,7 @@ NAME can be a Lisp symbol or string. SYMBOL is a `js2-symbol'." (:include js2-scope) (:constructor make-js2-script-node (&key (type js2-SCRIPT) (pos (js2-current-token-beg)) - len - ;; FIXME: What are those? - var-decls - fun-decls))) + len))) functions ; Lisp list of nested functions regexps ; Lisp list of (string . flags) symbols ; alist (every symbol gets unique index)