Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,14 +1,17 @@
goog.provide('ol.asserts');
goog.require('ol.AssertionError');
/**
* @module ol/asserts
*/
import _ol_AssertionError_ from './AssertionError.js';
var _ol_asserts_ = {};
/**
* @param {*} assertion Assertion we expected to be truthy.
* @param {number} errorCode Error code.
*/
ol.asserts.assert = function(assertion, errorCode) {
_ol_asserts_.assert = function(assertion, errorCode) {
if (!assertion) {
throw new ol.AssertionError(errorCode);
throw new _ol_AssertionError_(errorCode);
}
};
export default _ol_asserts_;