sdfsdfs
This commit is contained in:
16
node_modules/pixi.js/lib/utils/logging/warn.mjs
generated
vendored
Normal file
16
node_modules/pixi.js/lib/utils/logging/warn.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
let warnCount = 0;
|
||||
const maxWarnings = 500;
|
||||
function warn(...args) {
|
||||
if (warnCount === maxWarnings)
|
||||
return;
|
||||
warnCount++;
|
||||
if (warnCount === maxWarnings) {
|
||||
console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.");
|
||||
} else {
|
||||
console.warn("PixiJS Warning: ", ...args);
|
||||
}
|
||||
}
|
||||
|
||||
export { warn };
|
||||
//# sourceMappingURL=warn.mjs.map
|
Reference in New Issue
Block a user