-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Commit
…ader/#628)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,4 +150,9 @@ describe('Single File Component parser', () => { | |
const res = parseComponent(`<template>${raw}</template>`) | ||
expect(res.template.content.trim()).toBe(raw) | ||
}) | ||
|
||
it('should not hang on trailing text', () => { | ||
const res = parseComponent(`<template>hi</`) | ||
expect(res.template.content).toBe('hi') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yyx990803
Author
Member
|
||
}) | ||
}) |
Maybe we should report a parse error for this case during the compilation phase? And we could make an improvement for the parser to report the detailed error ( e.g., line number, error message and code snippet )