Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,33 @@
var test = require('tap').test;
var pack = require('../');
var vm = require('vm');
test('empty', function (t) {
t.plan(1);
var p = pack();
var src = '';
p.on('data', function (buf) { src += buf });
p.on('end', function () {
t.doesNotThrow(function() {
vm.runInNewContext(src, {});
});
});
p.end();
});
test('empty with standalone', function (t) {
t.plan(1);
var p = pack({standalone: 'ABC'});
var src = '';
p.on('data', function (buf) { src += buf });
p.on('end', function () {
t.doesNotThrow(function() {
vm.runInNewContext(src, {});
});
});
p.end();
});