mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 14:56:05 +00:00
13 lines
427 B
JavaScript
13 lines
427 B
JavaScript
|
|
/**
|
||
|
|
* Enables or disables assertions of argument types and offsets. Assertions are enabled by default but you can opt to
|
||
|
|
* disable them if your code already makes sure that everything is valid.
|
||
|
|
* @param {boolean} assert `true` to enable assertions, otherwise `false`
|
||
|
|
* @returns {!ByteBuffer} this
|
||
|
|
* @expose
|
||
|
|
*/
|
||
|
|
ByteBufferPrototype.assert = function(assert) {
|
||
|
|
this.noAssert = !assert;
|
||
|
|
return this;
|
||
|
|
};
|
||
|
|
|