This commit is contained in:
14
node_modules/ol/asserts.js
generated
vendored
Normal file
14
node_modules/ol/asserts.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @module ol/asserts
|
||||
*/
|
||||
import AssertionError from './AssertionError.js';
|
||||
/**
|
||||
* @param {*} assertion Assertion we expected to be truthy.
|
||||
* @param {number} errorCode Error code.
|
||||
*/
|
||||
export function assert(assertion, errorCode) {
|
||||
if (!assertion) {
|
||||
throw new AssertionError(errorCode);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=asserts.js.map
|
||||
Reference in New Issue
Block a user