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,16 @@
|
||||
import { StringString } from './typeNames';
|
||||
|
||||
export interface TStringValue {
|
||||
type: typeof StringString;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class StringValue implements TStringValue {
|
||||
type: typeof StringString;
|
||||
value: string;
|
||||
|
||||
constructor(value: string) {
|
||||
this.type = StringString;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user