mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
a7cb2aba9d
swc_ecma_minifier: - Test mangler using execution test suite. - `mangler`: Preserve `arguments`. - `mangler`: Handle shorthand. (#2051) - `mangler`: Handle object pattern properties. - `precompress`: Don't drop function declarations if the variable with same name is in different scope. (#2011)
18 lines
341 B
JavaScript
18 lines
341 B
JavaScript
var obj = { undefined: 1, NaN: 2, Infinity: 3, "-Infinity": 4, null: 5 };
|
|
console.log(
|
|
obj[void 0],
|
|
obj[undefined],
|
|
obj["undefined"],
|
|
obj[0 / 0],
|
|
obj[NaN],
|
|
obj["NaN"],
|
|
obj[1 / 0],
|
|
obj[Infinity],
|
|
obj["Infinity"],
|
|
obj[-1 / 0],
|
|
obj[-Infinity],
|
|
obj["-Infinity"],
|
|
obj[null],
|
|
obj["null"]
|
|
);
|