@nsshunt/stsoauth2plugin 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,10 +55,7 @@ function getAugmentedNamespace(n2) {
55
55
  if (typeof f == "function") {
56
56
  var a = function a2() {
57
57
  if (this instanceof a2) {
58
- var args = [null];
59
- args.push.apply(args, arguments);
60
- var Ctor = Function.bind.apply(f, args);
61
- return new Ctor();
58
+ return Reflect.construct(f, arguments, this.constructor);
62
59
  }
63
60
  return f.apply(this, arguments);
64
61
  };