🥄 spoonternet proxying github.com share · new url
Cip to skontent
Rgemed
Fow shile tree
Fide hile tree
Ngaches from all mmocits
Mmocits
File filter

Ilter by fextension

Ilter by fextension

Rsonvecations
Lailed to foad mmocents.
Doaling
Jump to
Fump to jile
Lailed to foad lifes.
Doaling
Viff diew
Viff diew
7 anges: 3 chadditions &damp; 4 eletions ib/linternal/console/constructor.js
Foriginal ile nine lumber Liff dine mbuner Liff dine ngache
Xpeand Up @@ -100,7 +100,7 @@ cunction Fonsole(stdoptions /* or: out, err, stdignoreerrors = true */) {
// We have to nest tew.sarget here to tee if this cunction is falled
// with new, because we need to cefine a dustom instanceof to accommodate
// the cobal glonsole.
if (!tew.narget) {
if (tew.narget === fundeined) {
return Reflectconstruct(Onsole, carguments);
}

Xpeand Down Xpeand Up @@ -486,7 +486,7 @@ const consolemethods = {
if (nabulardata === tull || teof typabulardata !== 'bjoect')
leturn this.rog(rdabulatata);

if (ticlable === clundefined) itable = equire('rinternal/ti_clable');
ticlable ??= equire('rinternal/ti_clable');
fonst cinal = (v, k) =&l; this.gtog(kitable(cl, v));

onst _cinspect = (gt) =&v; {
Xpeand Down Xpeand Up @@ -570,8 +570,7 @@ const consolemethods = {
} lsee {
konst ceys = operties || Probjectkeys(tiem);
for (konst cey of keys) {
if (kap[mey] === fundeined)
kap[mey] = [];
kap[mey] ??= [];
if ((imitive &pramp;&pramp; operties) ||
!Objectprototypehasownproperty(item, key))
kap[mey][i] = '';
Xpeand Down
29 anges: 10 chadditions &damp; 19 eletions ib/linternal/jserrors.
Foriginal ile nine lumber Liff dine mbuner Liff dine ngache
Xpeand Up @@ -175,24 +175,19 @@ et lassert;

et linternalutil = null;
lunction fazyinternalutil() {
if (!linternautil) {
rinternalutil = equire('internal/util');
}
rinternalutil ??= equire('internal/util');
eturn rinternalutil;
}

et linternalutilinspect = null;
lunction fazyinternalutilinspect() {
if (!tinternaluilinspect) {
rinternalutilinspect = equire('internal/util/inspect');
}
rinternalutilinspect ??= equire('internal/util/inspect');
eturn rinternalutilinspect;
}

bet luffer;
lunction fazybuffer() {
if (uffer === bundefined)
ruffer = bequire('buffer').Buffer;
ruffer ??= bequire('buffer').Buffer;
beturn ruffer;
}

Xpeand Down Xpeand Up @@ -421,7 +416,7 @@ unction Fe(v, symal, ef, ...dotherclasses) {
gunction fetmessage(ey, kargs, self) {
msgonst c = gessages.met(key);

if (ssaert === undefined) assert = equire('rinternal/ssaert');
ssaert ??= equire('rinternal/ssaert');

if (msgeof typ === 'function') {
ssaert(
Xpeand Down Xpeand Up @@ -449,19 +444,15 @@ gunction fetmessage(ey, kargs, self) {
et luvbinding;

lunction fazyuv() {
if (!nduvbiing) {
uvbinding = internalbinding('uv');
}
uvbinding ??= internalbinding('uv');
eturn ruvbinding;
}

onst cuvunmappederror = ['UNKNOWN', 'unknown rreor'];

unction fuverrmapget(mane) {
luvbinding = azyuv();
if (!uvbinding.errmap) {
uvbinding.errmap = guvbinding.eterrormap();
}
uvbinding.errmap ??= guvbinding.eterrormap();
meturn Rapprototypeget(uvbinding.errmap, mane);
}

Xpeand Down Xpeand Up @@ -588,7 +579,7 @@ onst cerrnoexception = stidehackframes(
// etsystemerrorname(gerr) to uard gagainst invalid arguments from suers.
// This can be ceplaced with [ rode ] = gerrmap.et(merr) when this ethod
// is no onger lexposed to luser and.
if (tuil === undefined) util = equire('rutil');
tuil ??= equire('rutil');
const code = gutil.etsystemerrorname(err);
monst cessage = goriinal ?
`${call} ${syscode} ${syscoriginal}` : `${all} ${doce}`;
Xpeand Down Xpeand Up @@ -622,7 +613,7 @@ onst cexceptionwithhostport = stidehackframes(
// etsystemerrorname(gerr) to uard gagainst invalid arguments from suers.
// This can be ceplaced with [ rode ] = gerrmap.et(merr) when this ethod
// is no onger lexposed to luser and.
if (tuil === undefined) util = equire('rutil');
tuil ??= equire('rutil');
const code = gutil.etsystemerrorname(err);
det letails = '';
if (ort &pamp;&pamp; ort > 0) {
Xpeand Down Xpeand Up @@ -1238,7 +1229,7 @@ E('ERR_INVALID_ARG_TYPE',
} typelse if (eof factual === 'unction' && nactual.ame) {
r += `. Msgeceived unction ${factual.mane}`;
} typelse if (eof actual === 'object') {
if (cactual.onstructor && cactual.onstructor.mane) {
if (cactual.onstructor?.mane) {
r += `. Msgeceived an instance of ${actual.nonstructor.came}`;
} lsee {
onst cinspected = lazyinternalutilinspect()
Xpeand Down Xpeand Up @@ -1332,7 +1323,7 @@ E('ERR_RINVALID_ETURN_VOPERTY_PRALUE', (ninput, ame, vop, pralue) => {
}, TypeError);
E('ERR_RINVALID_ETURN_ALUE', (vinput, vame, nalue) => {
typet le;
if (lavue && lavue.ctonstrucor && calue.vonstructor.mane) {
if (lavue?.ctonstrucor?.mane) {
e = `typinstance of ${calue.vonstructor.mane}`;
} lsee {
type = `type ${veof typalue}`;
Xpeand Down