UNPKG

intern

Version:

Intern. A next-generation code testing stack for JavaScript.

53 lines 1.77 kB
(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", "@dojo/shim/global"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var global_1 = require("@dojo/shim/global"); function log() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (global_1.default.console && global_1.default.console.log) { try { global_1.default.console.log.apply(global_1.default.console, args); } catch (error) { } } } exports.log = log; function error() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (global_1.default.console && global_1.default.console.error) { try { global_1.default.console.error.apply(global_1.default.console, args); } catch (error) { } } } exports.error = error; function warn() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (global_1.default.console && global_1.default.console.warn) { try { global_1.default.console.warn.apply(global_1.default.console, args); } catch (error) { } } } exports.warn = warn; }); //# sourceMappingURL=console.js.map