reject multiple `default`s in `switch` (#4053)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 17 Aug 2020 02:09:12 +0000 (03:09 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 02:09:12 +0000 (10:09 +0800)
commitfa13ed439138f9652ccb045e04965d336de0fd70
tree0aac7beabd735c1b709102ac3b859dbfa4519837
parent23f0dca992d89f5955aa1676ca2569e77315906e
reject multiple `default`s in `switch` (#4053)

fixes #4050
lib/parse.js
test/input/invalid/switch.js [new file with mode: 0644]
test/mocha/cli.js