Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/terser/terser

🗜 JavaScript parser, mangler and compressor toolkit for ES6+
https://github.com/terser/terser

Merge pull request #1740 from alexlamsl/harmony-v2.8.19

Merging from master for 2.8.19

66e90393502dd47412f390bed1582fbde7e7ce8d authored almost 8 years ago
Merge branch 'master' into harmony

d717bf9ce83f0020612acbfd9853b0e8f25b1443 authored almost 8 years ago
v2.8.19

a84564d1a8b1fda740963a577f4916d15a20138b authored almost 8 years ago
fix catch symbol mangling (#1734)

Only need to look up the immediate non-block/catch scope for the same-name special case.

fixe...

c595b84032b3083b87a976c8387010bf6074ad93 authored almost 8 years ago
[ES6] Implemented parse for export Name from Module variants. (#1701)

- add `AST_Export` new variants output
- add tests to `test/compress/`
- update `$propdoc` of ...

5dea52266be202db98705ab947d0704350447ae5 authored almost 8 years ago
remove paranthesis for `-(x*y)` (#1732)

7cb1adf455f8ab440e1971ae41265c1f7f9a806a authored almost 8 years ago
optimize try-catch-finally (#1731)

- eliminate empty blocks
- flatten out if try-block does not throw

7bea38a05dbe357434001fe59dbe06bb659a585f authored almost 8 years ago
improve tests from #1726 (#1729)

0f910ee25c3e644baf043f217b2fe91df8dc67ac authored almost 8 years ago
speed up IIFE elimination (#1728)

- `side_effects` will clean up inner statements, so checking for an empty function body should s...

beb9659778b04e46556b58bd1d093f3938be9dce authored almost 8 years ago
speed up `equivalent_to()` and `AST_Switch` (#1727)

f1a833a7aa4204411c33c7419e94e8c6c87afe23 authored almost 8 years ago
fix missing parentheses around NaN/Infinity shorthands (#1726)

fixes #1724
fixes #1725

2e41cd6394ad389080b446c20f519fc3920f81c7 authored almost 8 years ago
output optimal representations of NaN & Infinity (#1723)

- move these optimisations out from `Compressor` to `OutputStream`
- fixes behaviour inconsiste...

09f77c7d4d37350102c36b270b553f45e706d0c8 authored almost 8 years ago
improve beautified output of switch blocks (#1721)

fef0bf9ee0367f07dfbca26b144c2995c2b5db5f authored almost 8 years ago
v2.8.18

ae740b933fe9cad714f5a9aac625ae2857d5a04a authored almost 8 years ago
remove UGLIFY_DEBUG (#1720)

fixes #1719

ec7f37f314eb834d36eb64dddb8b5fe0934e50b1 authored almost 8 years ago
Merge pull request #1717 from alexlamsl/harmony-v2.8.17

Merging from master for 2.8.17

fccefbeaca7b698d60b521ddd93767c05cb14b47 authored almost 8 years ago
fix corner case in `unused` (#1718)

When fixing catch-related issue in #1715, it tries to optimise for duplicate definitions but did...

eb48a035e7880e73e7fe4f23727775cff365ffbc authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.17

1e2b0aaa04199533e6ae4d0b23231bf1aa67b1b8 authored almost 8 years ago
v2.8.17

6ab3224c0d724322597f5709e3f382cc913d96bb authored almost 8 years ago
fix `unused` on var of the same name within catch (#1716)

fixes #1715

c909ffb7156eb99e83afd8e1e75a876039bdc65b authored almost 8 years ago
fix `is_number()` on `+=` (#1714)

fixes #1710

f71f4905b004a559f0612e0e0928204f912a66bc authored almost 8 years ago
drop anonymous function name when overshadowed by other declarations (#1712)

fixes #1709

fb177a6312ccd90918c9f8f0f867c2fddd85a2c8 authored almost 8 years ago
handle var within catch of the same name (#1711)

The following code prints `1`:

var a = 1;
!function(){
a = 4;
try{
throw 2;
} ...

65da9acce6bd2548e5ffc7f35527ff62ff3f2fdd authored almost 8 years ago
fix tail trimming of switch blocks (#1707)

now guarded under `dead_code`

fixes #1705

67d0237f73c3147855983edde137cd95a2cb1749 authored almost 8 years ago
fix mangle for variable declared within catch block (#1706)

fixes #1704

984a21704e126616a74d65a1e8790aeccd02f548 authored almost 8 years ago
ufuzz: workaround for Function.toString() v2 (#1700)

aa3f647656ce46469d20bd477b600ca09bc3f964 authored almost 8 years ago
`has_side_effects()` should take `AST_Switch.expression` into account (#1699)

fixes #1698

c526da59a1a9b1a1c5689cfdcc840b36850ed250 authored almost 8 years ago
fix typeof side effects (#1696)

`statement_to_expression()` drops `typeof` even if it operates on undeclared variables.

Since...

581630e0a71cffeadd4887a757889d6a3502275c authored almost 8 years ago
preserve side effects in switch expression (#1694)

fixes #1690

f5952933a00bac8c9d794d5b0e3d5f8d6173c4a9 authored almost 8 years ago
fix `cascade` on anonymous function reference (#1693)

Unlike normal variables and even function definitions, these cannot be reassigned, even though a...

f001e4cb9d5bfe56e25db552bb7ab0951a142a99 authored almost 8 years ago
handle overlapped variable definitions (#1691)

Process variable definitions with or without assigned values against:
- `arguments`
- named fu...

57ce5bd9e085546a5c1cb8dd4a3ea71ab6c56f26 authored almost 8 years ago
fix `delete` related issues in `collapse_vars` and `reduce_vars` (#1689)

861a79ac9fdb2cdbb54054306eb896e2c134af73 authored almost 8 years ago
ufuzz: workaround function name and toString() (#1688)

fixes #1686

00996afd2ce1f05fa973016e793495f69b524d5b authored almost 8 years ago
fix `cascade` on `delete` operator (#1687)

Conditions including strict mode would make `delete` return `true` or `false`, and are too compl...

e76fb354eb62d8e7b6968f1f77cfbb219814cea3 authored almost 8 years ago
fallthrough should not execute case expression (#1683)

- de-duplicate trailing cases only, avoid all potential side-effects
- enable switch statement ...

3276740779077f2ee7b686c4aa7f1bd46fbc1c66 authored almost 8 years ago
optimize conditional when condition symbol matches consequent (#1684)

5509e51098274b28b8574246011767ba0be66edd authored almost 8 years ago
suppress switch branch de-duplication upon side effects (#1682)

fixes #1679

94f84727ce454c3ecf5206ac79dba4a21ec6deb6 authored almost 8 years ago
fix side-effects detection on switch statements (#1678)

extension of #1675

8a4f86528f5b5c3a0ee0a709ed3a6b908706a5c3 authored almost 8 years ago
Improve fuzzer. :) (#1665)

@qfox Put value constants in a global constant 74c0fb9
@qfox And the other string based valu...

adb0e882e926249eada4f8f5afaae01aa469face authored almost 8 years ago
optimize trivial arrow functions with a return statement in braces (#1681)

fixes #1676

6a54de79b58c37da1b6f8bcff20aadfd1d0e2043 authored almost 8 years ago
improve switch optimisations (#1677)

- correctly determine reachability of (default) branches
- gracefully handle multiple default b...

f83d370f57c49e5112ac5ce74e27a0573265baf6 authored almost 8 years ago
fix `has_side_effects()` (#1675)

`AST_Try` is an `AST_Block`, so besides try block we also need to inspect catch and finally bloc...

b19aa58cff73ea59438346db094de4a54463d669 authored almost 8 years ago
fix `reduce_vars` on `AST_Switch` (#1671)

Take conditional nature of switch branches into account.

fixes #1670

0a65de89b97731cd83a077303dd0511ba7ff7151 authored almost 8 years ago
fix typeof side-effects (#1669)

`has_side_effects()` does not take `typeof`'s magical power of not tripping over undeclared vari...

6e86ee950d98ebacef7e02515e34d758c4f836a1 authored almost 8 years ago
fix `dead_code` on `AST_Switch` (#1667)

Need to call `extract_declarations_from_unreachable_code()`.

fixes #1663

8ca2401ebe024287ce1133d2707b1a8ce91f4e6c authored almost 8 years ago
v2.8.16

491f16c766c92e20260b99696b6081f333ceaf0f authored almost 8 years ago
fix invalid `AST_For.init` (#1657)

Turns out the only place in `Compressor` which can generate invalid `AST_For.init` is within `dr...

a30092e20f6a1e23706f87ca998121b8832a57bb authored almost 8 years ago
introduce ufuzz.js (#1655)

closes #1647

b1abe92e1aface2ec3d1c3666f8674e120f3b487 authored almost 8 years ago
Update ISSUE_TEMPLATE.md

b454ce667eb8d9179c74532f308484bdae5392f5 authored almost 8 years ago
fix cascade of `evaluate` optimisation (#1654)

Operator has changed, so break out from rest of the rules.

fixes #1649

32283a0def807e0a382d4a6a23cc42e99084e1dd authored almost 8 years ago
fix corner case in `AST_For.init` (#1652)

Enforce `null` as value for empty initialisation blocks.

fixes #1648

ac51d4c5a079dccbc9a6cf69d06f757432c69694 authored almost 8 years ago
fix assignment extraction from conditional (#1651)

fixes #1645
fixes #1646

0432a7abb98f3aec871daa88331aa9223979dde3 authored almost 8 years ago
fix assignment substitution in sequences (#1643)

take side effects of binary boolean operations into account

fixes #1639

f3a1694a4182e1a26d3dd63dd21fcd4b38dafe3a authored almost 8 years ago
improve error marker placement (#1644)

For AST_UnaryPrefix, points to the operator rather than end of expression.

2e0dc970037b3a22fb367ab77c5fe506317ee40b authored almost 8 years ago
fix expect_stdout (#1642)

`compress()` may modify input ASTs

add tests for #1627 & #1640

701035621d708c39f4bdd2022fc02bdb4a967a39 authored almost 8 years ago
fix regression: CLI options with hyphens like -b ascii-only (#1640)

fixes #1637

79334dda105f772b7a5bfe13608a193c22537a7b authored almost 8 years ago
improve collapsible value detection (#1638)

- #1634 bars variables with cross-scope references in between to collapse
- but if assigned val...

e918748d88e39c6f2142b01e71c3e580d790d642 authored almost 8 years ago
Merge pull request #1636 from alexlamsl/harmony-v2.8.15

Merging from master for 2.8.15

9e2290b29c86caf847e291cf120ab23bea40544c authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.15

97d0fc271d06ce134a3bc835f9005a31925e2c27 authored almost 8 years ago
v2.8.15

6b2f34769a5572bdd9db034f19bbc2a0b6e6dabb authored almost 8 years ago
account for cross-scope modifications in `collapse_vars` (#1634)

mostly done by @kzc

fixes #1631

48ffbef51d914824916f387d756b263c341f032e authored almost 8 years ago
introduce compressor.info() (#1633)

report the following only when `options.warnings = "verbose"`
- unused elements due to inlining...

c0f3feae9f251abbea5ae1198e1a6784dd3261f7 authored almost 8 years ago
fix a bug in simple_glob (#1632)

- "?" should not match "/"
- other minor clean-ups

a00040dd93083548aa065c5ae8942e3c2600cbbe authored almost 8 years ago
metadata cleanup (#1630)

- mention performance anomaly in Node 7 and drop from CI
- remove unused npm "scripts"
- mark ...

ee95c1b38bcf0fbb6c676e98540c1d33f669e936 authored almost 8 years ago
throw parse error on invalid assignments (#1627)

fixes #1626

4bceb85cbfa2c944fb97bb3baaa403b266d075c6 authored almost 8 years ago
Merge pull request #1624 from alexlamsl/harmony-v2.8.14

Merging from master for 2.8.14

7906033e82d66f2735f8626e98f0f7352d9b3d25 authored almost 8 years ago
add `expect_stdout` to tests

4bf21ce5c1a5db70d22b6a8eb40cc14147ba2f93 authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.14

44d6b47bdc66def917e0fb6d3780891590075e61 authored almost 8 years ago
v2.8.14

30a75049f540bc8c2040b4f23f42abffdd2d6735 authored almost 8 years ago
make `expect_stdout` work on Node.js 0.12 (#1623)

That particular version of Node.js has messed up error messages, so provide a version-specific w...

a3cc3a9b8740eb1bb03c7e4cf008c38ef5c4a60c authored almost 8 years ago
fix commit 88fb83a (#1622)

The following is wrong:
`a == (b ? a : c)` => `b`
Because:
- `b` may not be boolean
- `a...

96f8befdd7dbc3be9f5991f805ad8d60dfb3e6d6 authored almost 8 years ago
fix AST_Binary.lift_sequences() (#1621)

Commit eab99a1c fails to account for side effects from compound assignments.

cd58635dcc8f74aafa842c2015b294ff4097ba08 authored almost 8 years ago
transform String.charAt() to index access (#1620)

Guarded by `unsafe` as `charAt()` can be overridden.

274331d0ea05197ea7cb531ccd1d78e0c7b8662c authored almost 8 years ago
Merge pull request #1614 from alexlamsl/harmony-v2.8.13

Merging from master for 2.8.13

129e449c8e737798d71ab14abbc03c0b6754a125 authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.13

75c3c8963f345c7fa4367d524721edf00fe238c3 authored almost 8 years ago
handle runtime errors in `expect_stdout` (#1618)

allow test to pass if both `input` and `expect` throws the same kind of error

0489d6de6499154c758a6464387546ec5a060f67 authored almost 8 years ago
fix top-level directives in compress tests (#1615)

`input` and `expect` are parsed as `AST_BlockStatement` which does not support `AST_Directive` b...

fb092839c26ddaa0614df5295be85ea207bda9f7 authored almost 8 years ago
Allow 'name' as object literal shorthand property (#1617)

fixes #1613

d26b7522d9f004d67281c578886b4a6395673b02 authored almost 8 years ago
Add `--in-source-map inline` documentation (#1611)

b7c112eefe4b7840cefd85287e3f858784c56a59 authored almost 8 years ago
v2.8.13

b2b8a0d386ac5e38e17212c734914cde1f3eee83 authored almost 8 years ago
fix chained evaluation (#1610)

`reduce_vars` enables substitution of variables but did not clone the value's `AST_Node`.

Thi...

ac403018135b0ba700ef6223970c1bbc2a518107 authored almost 8 years ago
extend `test/run-tests.js` to optionally execute uglified output (#1604)

fixes #1588

3563d8c09e36be8f8b9cb9500852778f8d191d5d authored almost 8 years ago
make `collapse_vars` consistent with `toplevel` (#1608)

fixes #1605

5ae04b35452693e886a7f836e62e3290b08016a1 authored almost 8 years ago
fix `hoist_vars` on `reduce_vars` (#1607)

`hoist_vars` converts variable declarations into plain assignments, which then confuses `reduce_...

a80b228d8be37eb6585bca01c6fb5468db5bea42 authored almost 8 years ago
fix stack issues with `AST_Node.evaluate()` (#1603)

As patched in #1597, `make_node_from_constant()` makes inconsistent and sometimes incorrect call...

cf4bf4ceb1eee86197d51e77e640e59ca04739b8 authored almost 8 years ago
fix `AST_Node.optimize()` (#1602)

Liberal use of `Compressor.transform()` and `AST_Node.optimize()` presents an issue for look-up ...

8223b2e0db4cc41d467d9b94b05511a36c320184 authored almost 8 years ago
Merge pull request #1601 from alexlamsl/harmony-v2.8.12

Merging from master for 2.8.12

2fd86d3cb02c2bcde81633c0096b308e2809ea00 authored almost 8 years ago
minor clean-ups (#1600)

- remove obsolete optimisation in `AST_Binary` after #1477
- improve `TreeWalker.has_directive(...

381bd3836ecd79eb5d4f7b84807c778ee1acf9c9 authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.12

8f7ab602e27704a1300d21a558cb566cadee7552 authored almost 8 years ago
fix `unused` crashes (#1599)

- `AST_DefaultAssign` on `keep_fargs`
- `AST_Expansion on` `keep_fargs`
- `AST_Destructuring` ...

1dd339f95e1037e8ff77cfb8fb213b920ea87ef4 authored almost 8 years ago
v2.8.12

919d5e348249f7b8c5ef0581660817292b5308a6 authored almost 8 years ago
temporary fix for boolean bug (#1597)

fixes #1592

e3a3db73ae4c2c90ad304e1e6b7d019053ca3dc3 authored almost 8 years ago
disallow parameter substitution for named IIFEs (#1596)

Self-referenced function has non-fixed values assigned to its parameters.

Let `unused` & `!ke...

d9344f30b83ecdfc8310ff43b9361c67cc85ec3e authored almost 8 years ago
Merge pull request #1591 from alexlamsl/harmony-v2.8.11

Merging from master for 2.8.11

c7063c1f38d13add8a474210a0e827019133cf30 authored almost 8 years ago
support multi-line string in tests (#1590)

`expect_exact` sometimes have multiple lines and `\n` are hard to read.

Use array of strings ...

be80f7e706cd6eb1c5f06e433804fda589a8968a authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.11

f4a12b34f2be72c1dd8795cb98be6ce0eb4fc2ed authored almost 8 years ago
fixup for #1585 (#1589)

As patched on `harmony`, `statement()` is the only user of `embed_tokens()` with a missing error...

cf45e2f79b543ebae60c5de54166b20da4522c25 authored almost 8 years ago
v2.8.11

8354758f3005e98de7ef2b50a01e903d79e4d265 authored almost 8 years ago
fix catch variable reference in IE8 (#1587)

`AST_Scope.def_variable()` will overwrite `AST_Symbol.thedef`, so save a copy before calling.

...

9e6b128374c62ee9f6238134fdc207ec9dc86284 authored almost 8 years ago
Correctly raise a parse exception with a missing loop body (#1585)

93cdb194f4895384b68a66736366659c39caece8 authored almost 8 years ago