mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Throw for invalid primitive types
This commit is contained in:
parent
b3f9a68e8e
commit
f4a087a9ed
1 changed files with 2 additions and 3 deletions
|
|
@ -127,9 +127,8 @@ class Parser {
|
|||
case PRIMITIVE_TYPES[6]:
|
||||
// This will likely get set by constants later on.
|
||||
break;
|
||||
}
|
||||
if (value == null) {
|
||||
// throw new Error("Failed to set value");
|
||||
default:
|
||||
throw new Error("Invalid primitive type");
|
||||
}
|
||||
const variable = new Variable({ ...props, type: { name: typeName } });
|
||||
variable.setValue(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue