Emit type and range errors

This commit is contained in:
Andrew Morris
2023-03-21 16:44:41 +11:00
parent e657604cbe
commit feeb0594de
22 changed files with 382 additions and 79 deletions

View File

@@ -23,6 +23,8 @@ pub enum BuiltinName {
parseInt,
Error,
TypeError,
RangeError,
}
pub const BUILTIN_NAMES: [&str; BuiltinName::COUNT] = [
@@ -37,6 +39,8 @@ pub const BUILTIN_NAMES: [&str; BuiltinName::COUNT] = [
"parseFloat",
"parseInt",
"Error",
"TypeError",
"RangeError",
];
pub const BUILTIN_COUNT: usize = BuiltinName::COUNT;