Sha256: 1bcf9c05cf32b4938e3d25caf255914c8c56a6dad467ddabdfb73a6799d05a42

Contents?: true

Size: 371 Bytes

Versions: 80

Compression:

Stored size: 371 Bytes

Contents

// sigh... life is hard
if (!global.console) {
    console = {}
}

var fns = ['log', 'error', 'trace'];
for (var i=0 ; i<fns.length ; ++i) {
    var fn = fns[i];
    if (!console[fn]) {
        console[fn] = function() {};
    }
}

if (!Array.isArray) {
    Array.isArray = function(arr) {
        return Object.prototype.toString.call(arr) === '[object Array]';
    }
}

Version data entries

80 entries across 80 versions & 10 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/events/tests/legacy-compat.js
optimacms-0.4.2 spec/dummy/node_modules/events/tests/legacy-compat.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/events/tests/legacy-compat.js
locomotivecms-3.4.0 app/javascript/node_modules/events/tests/legacy-compat.js
cortex-0.1.3 spec/dummy/node_modules/events/tests/legacy-compat.js
dragonfly_puppeteer-0.1.0 node_modules/events/tests/legacy-compat.js
lanes-0.8.0 node_modules/events/tests/legacy-compat.js
minimum_viable_product-0.0.11 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.6 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.5 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.4 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.3 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.2 test/dummy/node_modules/events/tests/legacy-compat.js
brwy_rails-0.0.1 test/dummy/node_modules/events/tests/legacy-compat.js
gulp_assets-1.0.0.pre.5 template/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js
gulp_assets-1.0.0.pre.4 template/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js
gulp_assets-1.0.0.pre.3 template/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js
smock-0.1.268 node_modules/webpack/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js
smock-0.1.267 node_modules/webpack/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js
smock-0.1.266 node_modules/webpack/node_modules/node-libs-browser/node_modules/events/tests/legacy-compat.js