We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unifiedjs
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent b0107be commit 4a3350fCopy full SHA for 4a3350f
dev/lib/index.js
@@ -577,7 +577,6 @@ function compiler(options = {}) {
577
function exit(token) {
578
const node = this.stack.pop()
579
assert(node, 'expected `node`')
580
- assert(node.type !== 'fragment', 'unexpected fragment `exit`ed')
581
const open = this.tokenStack.pop()
582
583
if (!open) {
@@ -602,6 +601,7 @@ function compiler(options = {}) {
602
601
)
603
}
604
+ assert(node.type !== 'fragment', 'unexpected fragment `exit`ed')
605
assert(node.position, 'expected `position` to be defined')
606
node.position.end = point(token.end)
607
return node
0 commit comments