X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=xynt-base-test4.js;h=716a508b39e36103151251082cb5a186b516a3bd;hb=66668c350b93f18307a621bedf45d31247fe0e70;hp=5eb9ee8d1539fc9638eebe3eae1f413e39485f48;hpb=26f2f12f9e360b879acb551ae130f91b8b6cdd11;p=xynt.git diff --git a/xynt-base-test4.js b/xynt-base-test4.js index 5eb9ee8..716a508 100644 --- a/xynt-base-test4.js +++ b/xynt-base-test4.js @@ -43,6 +43,14 @@ function print_dynstat(inst, name) for (i = 0 ; i < inst.length ; i++) { console.log(name[i]+".a_dyn: "+inst[i].a_dyn); console.log(name[i]+".a_stat: "+inst[i].a_stat); + if (name[i][0] == 'b') { + console.log(name[i]+".b_dyn: "+inst[i].b_dyn); + console.log(name[i]+".b_stat: "+inst[i].b_stat); + } + if (name[i][0] == 'c') { + console.log(name[i]+".c_dyn: "+inst[i].c_dyn); + console.log(name[i]+".c_stat: "+inst[i].c_stat); + } } } @@ -88,8 +96,10 @@ window.onload = function () { print_dynstat(arr_inst, arr_name); console.log("---"); - console.log("ACTION: C.prototype.a_stat = \"PROTO CHANGED\""); - C.prototype.a_stat = "PROTO CHANGED"; + console.log("ACTION: A.prototype.a_stat = \"PROTO CHANGED 2\""); + console.log("ACTION: C.prototype.c_stat = \"PROTO CHANGED 2\""); + A.prototype.a_stat = "PROTO CHANGED 2"; + C.prototype.c_stat = "PROTO CHANGED 2"; print_dynstat(arr_inst, arr_name);