| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1× 1× 1× 12× | goog.provide('ol.asserts');
goog.require('ol.AssertionError');
/**
* @param {*} assertion Assertion we expected to be truthy.
* @param {number} errorCode Error code.
*/
ol.asserts.assert = function(assertion, errorCode) {
Iif (!assertion) {
throw new ol.AssertionError(errorCode);
}
};
|