Built-In Namespace _global_
Method Attributes | Method Name and Description |
---|---|
Assert(test, error)
Assert that a condition is true, stopping the engine if it is false.
|
|
AssertWarn(test, error)
Assert that a condition is true, reporting a warning if the test fails.
|
Method Detail
Assert(test, error)
Assert that a condition is true, stopping the engine if it is false.
If the condifion fails an exception will be thrown.
Defined in: debug.console.js.
Defined in: debug.console.js.
- Parameters:
- test
- {Boolean} A simple test that should evaluate to true
- error
- {String} The error message to throw if the test fails
AssertWarn(test, error)
Assert that a condition is true, reporting a warning if the test fails.
Defined in: debug.console.js.
Defined in: debug.console.js.
- Parameters:
- test
- {Boolean} A simple test that should evaluate to true
- error
- {String} The warning to display if the test fails