loaders.gl
Version:
Framework-independent loaders for 3D graphics formats
16 lines (14 loc) • 435 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = assert;
// Replacement for the external assert method to reduce bundle size
// Note: We don't use the second "message" argument in calling code,
// so no need to support it here
function assert(condition, message) {
if (!condition) {
throw new Error(message || 'loader assertion failed.');
}
}
//# sourceMappingURL=assert.js.map