mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-11 06:27:56 -05:00
Emit type and range errors
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user