Interface: Console
Defined in: types/desktop-engine.d.ts:3817
Console (built into JavaScriptCore; the engine also logs through it)
Methods
assert()
assert(condition?, ...data): void;Defined in: types/desktop-engine.d.ts:3835
Asserts a condition
Parameters
| Parameter | Type |
|---|---|
condition? | boolean |
...data? | any[] |
Returns
void
Remarks
Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly
debug()
debug(...data): void;Defined in: types/desktop-engine.d.ts:3830
Logs a debug message
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
Remarks
Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly
error()
error(...data): void;Defined in: types/desktop-engine.d.ts:3825
Logs an error (uncaught exceptions are also reported through it)
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
info()
info(...data): void;Defined in: types/desktop-engine.d.ts:3821
Logs an informational message
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
log()
log(...data): void;Defined in: types/desktop-engine.d.ts:3819
Logs a message
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
time()
time(label?): void;Defined in: types/desktop-engine.d.ts:3845
Starts a timer
Parameters
| Parameter | Type |
|---|---|
label? | string |
Returns
void
Remarks
Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly
timeEnd()
timeEnd(label?): void;Defined in: types/desktop-engine.d.ts:3850
Stops a timer
Parameters
| Parameter | Type |
|---|---|
label? | string |
Returns
void
Remarks
Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly
trace()
trace(...data): void;Defined in: types/desktop-engine.d.ts:3840
Logs the call stack
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
Remarks
Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly
warn()
warn(...data): void;Defined in: types/desktop-engine.d.ts:3823
Logs a warning
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
