Sha256: 6a4173a2f104c0b0052e4a6929bb9ba6c538b8d8f350c88b30793b5510781595

Contents?: true

Size: 547 Bytes

Versions: 7

Compression:

Stored size: 547 Bytes

Contents

var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;

test('implicit process global', function (t) {
    t.plan(2);
    
    var b = browserify(__dirname + '/process/main.js');
    b.bundle(function (err, src) {
        var c = {
            done : function (one, two) {
                t.equal(one, 1);
                t.equal(two, 2);
                t.end();
            },
            setTimeout: setTimeout,
            clearTimeout: clearTimeout
        };
        vm.runInNewContext(src, c);
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/process.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/process.js