Sha256: 6a9b9e4d06176e9ce33610556e6a34b41ce32638b9047e43d3cc6da583d2aed3

Contents?: true

Size: 408 Bytes

Versions: 98

Compression:

Stored size: 408 Bytes

Contents

var console;
if (typeof global !== "undefined" && global.console) {
    console = global.console
} else if (typeof window !== "undefined" && window.console) {
    console = window.console
} else {
    console = window.console = {}
}
module.exports = console;
for(var name in {log:1, info:1, error:1, warn:1, dir:1, trace:1, assert:1, time:1, timeEnd: 1})
	if(!console[name])
		console[name] = function() {};

Version data entries

98 entries across 97 versions & 14 rubygems

Version Path
smock-0.1.264 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.263 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.262 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.261 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.260 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.259 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.258 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.256 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.255 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.254 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.253 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.252 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.251 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.250 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.249 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.247 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.246 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.245 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.244 node_modules/webpack/node_modules/node-libs-browser/mock/console.js
smock-0.1.243 node_modules/webpack/node_modules/node-libs-browser/mock/console.js