Sha256: 2aad0f61aa1c860bed38db63ab4aaf86cc66335882960068599245e48c59817f

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 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
        };
        vm.runInNewContext(src, c);
    });
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/test/process.js
sprockets-browserify-0.2.0 node_modules/browserify/test/process.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/test/process.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/test/process.js