[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b575f17 19/49: Optimize a call to `append`

From: Dmitry Gutov
Subject: [elpa] master b575f17 19/49: Optimize a call to `append`
Date: Mon, 16 Jan 2017 15:35:47 +0000 (UTC)

branch: master
commit b575f17f8ecee947350174dae227bbcda5023515
Author: Julian Kniephoff <address@hidden>
Commit: Julian Kniephoff <address@hidden>

    Optimize a call to `append`
    The last argument (a list) does not have to be copied,
    so it should be a rather long one.
 js2-mode.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index 08f4101..3292da4 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -7088,13 +7088,13 @@ The list of externs consists of the following:
 See especially `js2-additional-externs' for further details about externs."
   (let ((default-externs
           (append js2-ecma-262-externs
-                  (if js2-include-browser-externs js2-browser-externs)
                   (if (and js2-include-browser-externs
                            (>= js2-language-version 200)) js2-harmony-externs)
                   (if js2-include-rhino-externs js2-rhino-externs)
                   (if js2-include-node-externs js2-node-externs)
                   (if (or js2-include-browser-externs js2-include-node-externs)
-                      js2-typed-array-externs)))
+                      js2-typed-array-externs)
+                  (if js2-include-browser-externs js2-browser-externs)))
     (dolist (entry js2-recorded-identifiers)
       (cl-destructuring-bind (name-node scope pos end) entry

reply via email to

[Prev in Thread] Current Thread [Next in Thread]