diff options
author | alexlamsl <alexlamsl@gmail.com> | 2017-02-18 19:05:11 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl@gmail.com> | 2017-02-21 13:29:57 +0800 |
commit | 100307ab31e89075a5b0e56d47597a0525dd43a6 (patch) | |
tree | 64b64c7d372d17caac14f441fb0790bde1be3703 /test/compress/loops.js | |
parent | 148047fbbf1951a52e69170edf510c59b3899e6c (diff) | |
download | tracifyjs-100307ab31e89075a5b0e56d47597a0525dd43a6.tar.gz tracifyjs-100307ab31e89075a5b0e56d47597a0525dd43a6.zip |
fixes & improvements to [].join()
fixes
- [a].join() => "" + a
- ["a", , "b"].join() => "a,,b"
- ["a", null, "b"].join() => "a,,b"
- ["a", undefined, "b"].join() => "a,,b"
improvements
- ["a", "b"].join(null) => "anullb"
- ["a", "b"].join(undefined) => "a,b"
- [a + "b", c].join("") => a + "b" + c
closes #1453
Diffstat (limited to 'test/compress/loops.js')
0 files changed, 0 insertions, 0 deletions