Skip to content

Commit

Permalink
Merge pull request #1844 from browserify/util-11
Browse files Browse the repository at this point in the history
Upgrade util to v0.12.0.
  • Loading branch information
goto-bus-stop committed Jul 22, 2020
2 parents 3d05c3a + 51bc462 commit 8742ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"timers-browserify": "^1.0.1",
"tty-browserify": "0.0.1",
"url": "~0.11.0",
"util": "~0.10.1",
"util": "~0.12.0",
"vm-browserify": "^1.0.0",
"xtend": "^4.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion test/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var browserify = require('../');
var test = require('tap').test;
var util = require('util');
var xtend = require('xtend');
var vm = require('vm');

test('util.inspect', function (t) {
Expand Down Expand Up @@ -46,7 +47,8 @@ test('util.inherits without Object.create', function (t) {
b.require('events');

b.bundle(function (err, src) {
var c = { Object : { prototype: Object.prototype, defineProperty: Object.defineProperty } };
var c = xtend({}, Object);
delete c.create;
vm.runInNewContext(src, c);
var EE = c.require('events').EventEmitter;

Expand Down

0 comments on commit 8742ec5

Please sign in to comment.