swc/ecmascript/minifier/tests/terser/compress/issue-1770/mangle_props/input.js
강동윤 c6b22c57f8
feat(es/minifier): Implement minifier partially (#1302)
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
2021-05-20 13:51:30 +09:00

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"]
);