comment.js 396 B

12345678910111213141516
  1. var browserify = require('../');
  2. var vm = require('vm');
  3. var test = require('tap').test;
  4. test('trailing comment', function (t) {
  5. t.plan(1);
  6. var b = browserify(__dirname + '/comment/main.js');
  7. b.bundle(function (err, src) {
  8. var c = {
  9. ex : function (obj) {
  10. t.same(obj, 1234);
  11. }
  12. };
  13. vm.runInNewContext(src, c);
  14. });
  15. });