@@ -3469,7 +3469,13 @@ Generated by [AVA](https://avajs.dev).
34693469 function getAugmentedNamespace(n) {β
34703470 var f = n.default;β
34713471 if (typeof f == "function") {β
3472- var a = function () {β
3472+ var a = function a () {β
3473+ if (this instanceof a) {β
3474+ var args = [null];β
3475+ args.push.apply(args, arguments);β
3476+ var Ctor = Function.bind.apply(f, args);β
3477+ return new Ctor();β
3478+ }β
34733479 return f.apply(this, arguments);β
34743480 };β
34753481 a.prototype = f.prototype;β
@@ -3549,7 +3555,13 @@ Generated by [AVA](https://avajs.dev).
35493555 function getAugmentedNamespace(n) {β
35503556 var f = n.default;β
35513557 if (typeof f == "function") {β
3552- var a = function () {β
3558+ var a = function a () {β
3559+ if (this instanceof a) {β
3560+ var args = [null];β
3561+ args.push.apply(args, arguments);β
3562+ var Ctor = Function.bind.apply(f, args);β
3563+ return new Ctor();β
3564+ }β
35533565 return f.apply(this, arguments);β
35543566 };β
35553567 a.prototype = f.prototype;β
@@ -3623,7 +3635,13 @@ Generated by [AVA](https://avajs.dev).
36233635 function getAugmentedNamespace(n) {β
36243636 var f = n.default;β
36253637 if (typeof f == "function") {β
3626- var a = function () {β
3638+ var a = function a () {β
3639+ if (this instanceof a) {β
3640+ var args = [null];β
3641+ args.push.apply(args, arguments);β
3642+ var Ctor = Function.bind.apply(f, args);β
3643+ return new Ctor();β
3644+ }β
36273645 return f.apply(this, arguments);β
36283646 };β
36293647 a.prototype = f.prototype;β
@@ -3710,7 +3728,13 @@ Generated by [AVA](https://avajs.dev).
37103728 function getAugmentedNamespace(n) {β
37113729 var f = n.default;β
37123730 if (typeof f == "function") {β
3713- var a = function () {β
3731+ var a = function a () {β
3732+ if (this instanceof a) {β
3733+ var args = [null];β
3734+ args.push.apply(args, arguments);β
3735+ var Ctor = Function.bind.apply(f, args);β
3736+ return new Ctor();β
3737+ }β
37143738 return f.apply(this, arguments);β
37153739 };β
37163740 a.prototype = f.prototype;β
@@ -3907,7 +3931,13 @@ Generated by [AVA](https://avajs.dev).
39073931 function getAugmentedNamespace(n) {β
39083932 var f = n.default;β
39093933 if (typeof f == "function") {β
3910- var a = function () {β
3934+ var a = function a () {β
3935+ if (this instanceof a) {β
3936+ var args = [null];β
3937+ args.push.apply(args, arguments);β
3938+ var Ctor = Function.bind.apply(f, args);β
3939+ return new Ctor();β
3940+ }β
39113941 return f.apply(this, arguments);β
39123942 };β
39133943 a.prototype = f.prototype;β
@@ -4131,7 +4161,13 @@ Generated by [AVA](https://avajs.dev).
41314161 function getAugmentedNamespace(n) {β
41324162 var f = n.default;β
41334163 if (typeof f == "function") {β
4134- var a = function () {β
4164+ var a = function a () {β
4165+ if (this instanceof a) {β
4166+ var args = [null];β
4167+ args.push.apply(args, arguments);β
4168+ var Ctor = Function.bind.apply(f, args);β
4169+ return new Ctor();β
4170+ }β
41354171 return f.apply(this, arguments);β
41364172 };β
41374173 a.prototype = f.prototype;β
@@ -4227,7 +4263,13 @@ Generated by [AVA](https://avajs.dev).
42274263 function getAugmentedNamespace(n) {β
42284264 var f = n.default;β
42294265 if (typeof f == "function") {β
4230- var a = function () {β
4266+ var a = function a () {β
4267+ if (this instanceof a) {β
4268+ var args = [null];β
4269+ args.push.apply(args, arguments);β
4270+ var Ctor = Function.bind.apply(f, args);β
4271+ return new Ctor();β
4272+ }β
42314273 return f.apply(this, arguments);β
42324274 };β
42334275 a.prototype = f.prototype;β
@@ -4414,7 +4456,13 @@ Generated by [AVA](https://avajs.dev).
44144456 function getAugmentedNamespace(n) {β
44154457 var f = n.default;β
44164458 if (typeof f == "function") {β
4417- var a = function () {β
4459+ var a = function a () {β
4460+ if (this instanceof a) {β
4461+ var args = [null];β
4462+ args.push.apply(args, arguments);β
4463+ var Ctor = Function.bind.apply(f, args);β
4464+ return new Ctor();β
4465+ }β
44184466 return f.apply(this, arguments);β
44194467 };β
44204468 a.prototype = f.prototype;β
@@ -4686,7 +4734,13 @@ Generated by [AVA](https://avajs.dev).
46864734 function getAugmentedNamespace(n) {β
46874735 var f = n.default;β
46884736 if (typeof f == "function") {β
4689- var a = function () {β
4737+ var a = function a () {β
4738+ if (this instanceof a) {β
4739+ var args = [null];β
4740+ args.push.apply(args, arguments);β
4741+ var Ctor = Function.bind.apply(f, args);β
4742+ return new Ctor();β
4743+ }β
46904744 return f.apply(this, arguments);β
46914745 };β
46924746 a.prototype = f.prototype;β
@@ -4774,7 +4828,13 @@ Generated by [AVA](https://avajs.dev).
47744828 function getAugmentedNamespace(n) {β
47754829 var f = n.default;β
47764830 if (typeof f == "function") {β
4777- var a = function () {β
4831+ var a = function a () {β
4832+ if (this instanceof a) {β
4833+ var args = [null];β
4834+ args.push.apply(args, arguments);β
4835+ var Ctor = Function.bind.apply(f, args);β
4836+ return new Ctor();β
4837+ }β
47784838 return f.apply(this, arguments);β
47794839 };β
47804840 a.prototype = f.prototype;β
@@ -6017,7 +6077,13 @@ Generated by [AVA](https://avajs.dev).
60176077 function getAugmentedNamespace(n) {β
60186078 var f = n.default;β
60196079 if (typeof f == "function") {β
6020- var a = function () {β
6080+ var a = function a () {β
6081+ if (this instanceof a) {β
6082+ var args = [null];β
6083+ args.push.apply(args, arguments);β
6084+ var Ctor = Function.bind.apply(f, args);β
6085+ return new Ctor();β
6086+ }β
60216087 return f.apply(this, arguments);β
60226088 };β
60236089 a.prototype = f.prototype;β
@@ -6062,7 +6128,13 @@ Generated by [AVA](https://avajs.dev).
60626128 function getAugmentedNamespace(n) {β
60636129 var f = n.default;β
60646130 if (typeof f == "function") {β
6065- var a = function () {β
6131+ var a = function a () {β
6132+ if (this instanceof a) {β
6133+ var args = [null];β
6134+ args.push.apply(args, arguments);β
6135+ var Ctor = Function.bind.apply(f, args);β
6136+ return new Ctor();β
6137+ }β
60666138 return f.apply(this, arguments);β
60676139 };β
60686140 a.prototype = f.prototype;β
@@ -6993,7 +7065,13 @@ Generated by [AVA](https://avajs.dev).
69937065 function getAugmentedNamespace(n) {β
69947066 var f = n.default;β
69957067 if (typeof f == "function") {β
6996- var a = function () {β
7068+ var a = function a () {β
7069+ if (this instanceof a) {β
7070+ var args = [null];β
7071+ args.push.apply(args, arguments);β
7072+ var Ctor = Function.bind.apply(f, args);β
7073+ return new Ctor();β
7074+ }β
69977075 return f.apply(this, arguments);β
69987076 };β
69997077 a.prototype = f.prototype;β
0 commit comments