mirror of
https://github.com/bendtherules/not-a-js-engine.git
synced 2026-08-19 00:33:20 +00:00
Implement string, number literal and completion record
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Node } from './acorn-helpers/types';
|
||||
|
||||
class NotImplementedError extends TypeError {}
|
||||
|
||||
export function throwUnknownNode(node: Node) {
|
||||
throw new NotImplementedError(
|
||||
`Unknown type: ${node.type} with text "${node.sourceFile?.slice(
|
||||
node.start,
|
||||
node.end
|
||||
)}"`
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user