Add Symbol builtin

This commit is contained in:
Andrew Morris
2023-05-25 13:45:38 +10:00
parent 706fb78442
commit 205f5efa02
6 changed files with 118 additions and 10 deletions

View File

@@ -25,6 +25,8 @@ pub enum BuiltinName {
Error,
TypeError,
RangeError,
Symbol,
}
pub const BUILTIN_NAMES: [&str; BuiltinName::COUNT] = [
@@ -41,6 +43,7 @@ pub const BUILTIN_NAMES: [&str; BuiltinName::COUNT] = [
"Error",
"TypeError",
"RangeError",
"Symbol",
];
pub const BUILTIN_COUNT: usize = BuiltinName::COUNT;