forked from dollarshaveclub/es-check
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
var x = {
get() {
return 123;
},
};
var i = 123;
var v = {
i,
};appears to be supported by ios 9: https://caniuse.com/?search=object+shorthand
but fails with es-check 9.6.2:
$ node_modules/.bin/es-check checkBrowser y.js --browserslistQuery="ios >= 9" --noCache
info: ES-Check: checking 1 file...
error: ES-Check: there were 1 ES version matching errors.
info:
ES-Check Error:
----
· erroring file: y.js at y.js:3:3
· error: SyntaxError: Unexpected token (3:3)
· see the printed err.stack below for context
----
SyntaxError: Unexpected token (3:3)
at pp$4.raise (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:3766:15)
at pp$9.unexpected (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:799:10)
at pp$5.parsePropertyValue (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:3476:19)
at pp$5.parseProperty (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:3420:10)
at pp$5.parseObj (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:3375:23)
at pp$5.parseExprAtom (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:3076:19)
at pp$5.parseExprSubscripts (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:2884:21)
at pp$5.parseMaybeUnary (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:2842:19)
at pp$5.parseExprOps (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:2770:21)
at pp$5.parseMaybeConditional (node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js:2753:21)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels