aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-04-15 22:23:11 +0800
committerGitHub <noreply@github.com>2019-04-15 22:23:11 +0800
commit5172ba5f2ade22716e65ff2333218fc08996bfcc (patch)
treef5d5084980b543c64b7fedd1c233eb8b4414ddb2 /lib/output.js
parenta57b069409d84e3768dfd8e786532e458f68e553 (diff)
downloadtracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.tar.gz
tracifyjs-5172ba5f2ade22716e65ff2333218fc08996bfcc.zip
introduce `functions` (#3360)
`var f = function() {};` => `function f() {}`
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index 7f7e74df..4b1ae949 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -123,7 +123,7 @@ function OutputStream(options) {
});
} : function(str) {
var s = "";
- for (var i = 0, len = str.length; i < len; i++) {
+ for (var i = 0; i < str.length; i++) {
if (is_surrogate_pair_head(str[i]) && !is_surrogate_pair_tail(str[i + 1])
|| is_surrogate_pair_tail(str[i]) && !is_surrogate_pair_head(str[i - 1])) {
s += "\\u" + str.charCodeAt(i).toString(16);
ix/commit/build-aux?id=4b7e5c1131430f10e6211879836cf17447ef5bbc'>Merge branch 'master' into core-updatesMarius Bakke 2017-03-14build: On 2.2, build package files with almost no optimizations....Ludovic Courtès 2017-03-13Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner 2017-03-12Add 'guix pack'....Ludovic Courtès 2017-03-09Merge branch 'master' into core-updatesLudovic Courtès 2017-03-09hydra: Really disable 32-to-64-bit cross-builds....Ludovic Courtès 2017-03-08build: Unset 'NIX_BUILD_HOOK' when offloading support is missing....Ludovic Courtès 2017-02-20gnu: Add bootstrap-binaries for 'aarch64-linux'....Efraim Flashner 2017-02-17hydra: Add "aarch64-linux-gnu" as a cross-compilation target....Efraim Flashner 2017-02-14hydra: Add "aarch64-linux-gnu" as a cross-compilation target....Efraim Flashner 2017-01-20hydra: Add "i586-pc-gnu" as a cross-compilation target....Ludovic Courtès 2017-01-06Merge branch 'master' into core-updatesLeo Famulari 2017-01-05hydra: Add "powerpc-linux-gnu" as a cross-compilation target....Ludovic Courtès 2016-12-31hydra: Remove 'qemu-image' job....Ludovic Courtès 2016-12-18build: check-final-inputs-self-contained has an exception for 'bash:include'....Ludovic Courtès 2016-12-08hydra: Fix wrong-num-args error when computing the cross jobs....Ludovic Courtès 2016-12-08hydra: Adjust to make-bootstrap.scm change....Ludovic Courtès 2016-12-08hydra: Use '%final-inputs' from base.scm, not commencement.scm....Ludovic Courtès 2016-12-07hydra: Add "i686-w64-mingw32" as a cross-compilation target....Ludovic Courtès 2016-11-27pull: Hack to allow compilation with older Guile-SSH packages....Ludovic Courtès 2016-11-26pull: Add guile-ssh to the dependencies....宋文武