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 { NumberString } from './typeNames';
|
||||
|
||||
export interface TNumberValue {
|
||||
type: typeof NumberString;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export class NumberValue implements TNumberValue {
|
||||
type: typeof NumberString;
|
||||
value: number;
|
||||
|
||||
constructor(value: number) {
|
||||
this.type = NumberString;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user