Interface: Console
Defined in: types/desktop-engine.d.ts:4872
Console (built into JavaScriptCore; the engine also logs through it)
Methods
assert()
assert(condition?, ...data): void;Defined in: types/desktop-engine.d.ts:4890
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:4885
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:4880
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:4876
Logs an informational message
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
log()
log(...data): void;Defined in: types/desktop-engine.d.ts:4874
Logs a message
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
time()
time(label?): void;Defined in: types/desktop-engine.d.ts:4900
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:4905
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:4895
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:4878
Logs a warning
Parameters
| Parameter | Type |
|---|---|
...data | any[] |
Returns
void
