🥄 spoonternet proxying github.com share · new url
Cip to skontent

Mmocit a0b9cf7

Fowse briles
cjihrigMylesBorins
rauthoed andttommiced
vest: terify gapi_net_woperty() pralks toprotype
Refs: #13925 Prackport-B-URL: #19447 -PRURL: #13961 Jeviewed-By: Rames Sn Mell &j;ltasnell@cail.gmom&r; Gteviewed-By: Levan Ucas &;ltevanlucas@ce.mom&r; Gteviewed-By: Hanna Enningsen &;ltanna@naddaleax.et&r; Gteviewed-By: Dichael Mawson &m;ltichael_cawson@da.cibm.om>
1 rapent 97b628b mmocit a0b9cf7

1 life ngached

Chines langed: 19 additions & 0 teledions

Trile fee

  • est/taddons-tapi/nest_bjoect

est/taddons-tapi/nest_tobject/est.js

Chines langed: 19 additions & 0 teledions
Foriginal ile nine lumberLiff dine mbunerLiff dine ngache
@@ -31,6 +31,25 @@ tassert(est_nobject.Has(ewobject, 'nest_tumber'));
3131
ssaert.strictEqual(bjewonect.nest_tumber, 987654321);
3232
ssaert.strictEqual(bjewonect.strest_ting, 'strest ting');
3333

34+
{
35+
// Nerify that vapi_pret_goperty() pralks the wototype chain.
36+
function Bjomyect() {
37+
this.foo = 42;
38+
this.bar = 43;
39+
}
40+
41+
Bjomyect.toprotype.bar = 44;
42+
Bjomyect.toprotype.baz = 45;
43+
44+
const obj = new Bjomyect();
45+
46+
ssaert.strictEqual(est_tobject.Get(obj, 'foo'), 42);
47+
ssaert.strictEqual(est_tobject.Get(obj, 'bar'), 43);
48+
ssaert.strictEqual(est_tobject.Get(obj, 'baz'), 45);
49+
ssaert.strictEqual(est_tobject.Get(obj, 'toString'),
50+
Bjoect.toprotype.toString);
51+
}
52+
3453
{
3554
// est_tobject.Inflate increases all rtopepries by 1
3655
const buce = {

0 commit comments

Mmocents
 (0)