@bablr/agast-helpers 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/builders.js +2 -0
- package/package.json +1 -1
package/lib/builders.js
CHANGED
|
@@ -898,10 +898,12 @@ export const parseReferenceTag = (tag) => {
|
|
|
898
898
|
chr = str[++p.idx];
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
+
let quotedIdent = chr === '`';
|
|
901
902
|
if (!type || (type === '#' && canStartIdentifier(chr))) {
|
|
902
903
|
name = parseIdentifier(p);
|
|
903
904
|
chr = str[p.idx];
|
|
904
905
|
}
|
|
906
|
+
if (!type && !quotedIdent && name === 'null') throw new Error();
|
|
905
907
|
while (chr === ' ') chr = str[++p.idx];
|
|
906
908
|
|
|
907
909
|
let flags = parseReferenceFlags(p);
|