Skip to content

Commit a6381b3

Browse files
author
Vincent Molinié
committed
fix implem
1 parent ce82a09 commit a6381b3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/parse-result.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ export default class ParseResult {
11091109
break;
11101110
case 'BooleanLiteral':
11111111
case 'NumberLiteral':
1112-
case 'NullLiteral':
11131112
{
11141113
let { source } = nodeInfo;
11151114

@@ -1121,6 +1120,11 @@ export default class ParseResult {
11211120
output.push(source);
11221121
}
11231122
break;
1123+
case 'NullLiteral':
1124+
{
1125+
output.push('null');
1126+
}
1127+
break;
11241128
default:
11251129
throw new Error(
11261130
`ember-template-recast does not have the ability to update ${original.type}. Please open an issue so we can add support.`

0 commit comments

Comments
 (0)