You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const [specificity] = Specificity.calculate('not(#\9) .foo');
^
SyntaxError: \8 and \9 are not allowed in strict mode.
at Loader.moduleStrategy (node:internal/modules/esm/translators:146:18)
at async link (node:internal/modules/esm/module_job:67:21)
Expected output {a: 1, b: 1, c: 0 }
The text was updated successfully, but these errors were encountered:
This is a side-effect of using strict mode, which is runtime related. This package is exposed as an ECMAScript module, which uses strict mode by default, so I don't think there's a way to fix it there, and I would make me label this as “Intended Behavior”.
As a workaround, though, you can use the CJS build of the package (which does not use strict mode):
Expected output
{a: 1, b: 1, c: 0 }
The text was updated successfully, but these errors were encountered: