intern
Version:
Intern. A next-generation code testing stack for JavaScript.
54 lines • 1.81 kB
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@theintern/common"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.warn = exports.error = exports.log = void 0;
var common_1 = require("@theintern/common");
function log() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
if (common_1.global.console && common_1.global.console.log) {
try {
common_1.global.console.log.apply(common_1.global.console, args);
}
catch (error) { }
}
}
exports.log = log;
function error() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
if (common_1.global.console && common_1.global.console.error) {
try {
common_1.global.console.error.apply(common_1.global.console, args);
}
catch (error) { }
}
}
exports.error = error;
function warn() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
if (common_1.global.console && common_1.global.console.warn) {
try {
common_1.global.console.warn.apply(common_1.global.console, args);
}
catch (error) { }
}
}
exports.warn = warn;
});
//# sourceMappingURL=console.js.map