mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Handle unknown objects better
This commit is contained in:
parent
ff26800905
commit
39bad700e9
1 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,11 @@ function printValue(value) {
|
|||
switch (variable.typeName) {
|
||||
case "OBJECT":
|
||||
const obj = runtime[variable.type];
|
||||
type = obj.getClassName();
|
||||
if (obj == null) {
|
||||
type = "Unknown object";
|
||||
} else {
|
||||
type = obj.getClassName();
|
||||
}
|
||||
break;
|
||||
case "STRING":
|
||||
const str = variable.getValue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue